fix: deb安装对systemctl stop的操作

This commit is contained in:
TsMask committed 2024-09-21 11:46:05 +08:00
1 parent c726cdc65b
commit ac25c16e74
3 files changed
+18 -21

No files matched your search

+4 -10
View File
@@ -98,16 +98,10 @@ if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then
exit 1
fi
fi
# echo -n "Stopping OMC service ... "
# systemctl stop restagent.service
# systemctl stop crontask.service
# systemctl stop sshsvc.service
# systemctl stop captrace.service
# echo "done"
echo -n "Starting OMC service ... "
systemctl start crontask.service
systemctl start sshsvc.service
systemctl start captrace.service
systemctl start restagent.service
systemctl restart crontask.service
systemctl restart sshsvc.service
systemctl restart captrace.service
systemctl restart restagent.service
echo "done"
+4 -11
View File
@@ -99,16 +99,9 @@ if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then
fi
fi
echo -n "Stopping OMC service ... "
systemctl stop restagent.service
systemctl stop crontask.service
systemctl stop sshsvc.service
systemctl stop captrace.service
echo "done"
echo -n "Starting OMC service ... "
systemctl start crontask.service
systemctl start sshsvc.service
systemctl start captrace.service
systemctl start restagent.service
systemctl restart crontask.service
systemctl restart sshsvc.service
systemctl restart captrace.service
systemctl restart restagent.service
echo "done"
+10
View File
@@ -1,8 +1,18 @@
# !/bin/bash
FERootDir=/usr/local/omc/htdocs/front
echo -n "Stopping OMC service ... "
systemctl stop restagent.service
systemctl stop crontask.service
systemctl stop sshsvc.service
systemctl stop captrace.service
echo "done"
# apt-get install zip
# clear front-end old hash js files
rm -rf ${FERootDir}/assets
rm -rf ${FERootDir}/js
rm -rf ${FERootDir}/index.*.js