feat: sqlite检查文件存在不覆盖
This commit is contained in:
@@ -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