fix: 升级配置目录放置

This commit is contained in:
TsMask committed 2025-05-22 18:35:49 +08:00
1 parent 6e769c468d
commit d103c3632c
2 files changed
+15 -1

No files matched your search

+7
View File
@@ -40,6 +40,13 @@ if [ ! -f $RootDir/machine.ini ]; then
systemctl restart sshsvc.service
else
# Operation when upgrading
if [ ! -f $RootDir/omc.conf ]; then
chmod +rx /usr/local/bin/omc
cp $RootDir/default/omc.conf $RootDir/omc.conf
cp $RootDir/default/omc.yaml $RootDir/omc.yaml
cp $RootDir/default/sshsvc.yaml $RootDir/sshsvc.yaml
cp $RootDir/web/default/config.js $RootDir/web/config.js
fi
bash $RootDir/script/setup.sh -u
if [ $? -ne 0 ]; then