1
0

feat: 升级前stop omc.service,防止sqlilte文件更新错误

This commit is contained in:
TsMask
2025-08-18 16:06:37 +08:00
parent 2f6ad6cac0
commit 707a0c0e0b
2 changed files with 2 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ else
cp -rf $RootDir/default/omc.yaml $RootDir/omc.yaml
fi
systemctl stop omc.service
bash $RootDir/script/setup.sh -u
if [ $? -ne 0 ]; then
echo "Upgrade failed."

View File

@@ -80,6 +80,7 @@ else
cp -rf $RootDir/default/omc.yaml $RootDir/omc.yaml
fi
systemctl stop omc.service
bash $RootDir/script/setup.sh -u
if [ $? -ne 0 ]; then
echo "Upgrade failed."