feat: sqlite检查文件存在不覆盖
This commit is contained in:
1 parent
645f223a2a
commit
2bfc7887e3
1 file changed
+5
@@ -63,6 +63,11 @@ if [ ! -e "${NginxConfDir}/omc.conf" ]; then
|
|||||||
cp -f ${OMCEtcDir}/nginx/omc.conf ${NginxConfDir};
|
cp -f ${OMCEtcDir}/nginx/omc.conf ${NginxConfDir};
|
||||||
fi
|
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
|
systemctl daemon-reload
|
||||||
|
|
||||||
# disable auto upgrade
|
# disable auto upgrade
|
||||||
|
|||||||
Reference in new issue
Block a user