1
0

feat: sqlite检查文件存在不覆盖

This commit is contained in:
TsMask
2025-02-28 21:40:53 +08:00
parent 645f223a2a
commit 2bfc7887e3

View File

@@ -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