1
0

fix: 在升级过程中停止omc.service以确保正确更新

This commit is contained in:
TsMask
2025-09-15 17:34:58 +08:00
parent 620dfe629f
commit a546f1783d
2 changed files with 4 additions and 0 deletions

View File

@@ -48,6 +48,8 @@ else
cp -rf $RootDir/default/omc.yaml $RootDir/omc.yaml
fi
# Stop Service
systemctl daemon-reload
systemctl stop omc.service
bash $RootDir/script/setup.sh -u
if [ $? -ne 0 ]; then