From 2bfc7887e375fb267ce602dd9ca8d08199f1bd3a Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 28 Feb 2025 21:40:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20sqlite=E6=A3=80=E6=9F=A5=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=AD=98=E5=9C=A8=E4=B8=8D=E8=A6=86=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debbuild/DEBIAN/postinst | 5 +++++ 1 file changed, 5 insertions(+) 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