diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index 4a84ef8..55ebdd3 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -63,6 +63,11 @@ if [ ! -e "${NginxConfDir}/omc.conf" ]; then cp -f ${OMCEtcDir}/nginx/omc.conf ${NginxConfDir}; fi +if [ ! -e "${OMCRootDir}/database/omc_db.sqlite" ]; then + mkdir -p ${OMCRootDir}/database + cp -f ${OMCRootDir}/etc/db/omc_db.sqlite ${OMCRootDir}/database/omc_db.sqlite; +fi + systemctl daemon-reload # disable auto upgrade