fix: deb安装前systemctl stop的操作判断
This commit is contained in:
1 parent
ac25c16e74
commit
1c565bdd61
4 files changed
+18
-16
No files matched your search
@@ -100,8 +100,8 @@ if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n "Starting OMC service ... "
|
echo -n "Starting OMC service ... "
|
||||||
systemctl restart crontask.service
|
systemctl start crontask.service
|
||||||
systemctl restart sshsvc.service
|
systemctl start sshsvc.service
|
||||||
systemctl restart captrace.service
|
systemctl start captrace.service
|
||||||
systemctl restart restagent.service
|
systemctl start restagent.service
|
||||||
echo "done"
|
echo "done"
|
||||||
@@ -1,18 +1,19 @@
|
|||||||
# !/bin/bash
|
# !/bin/bash
|
||||||
|
|
||||||
FERootDir=/usr/local/omc/htdocs/front
|
|
||||||
|
|
||||||
echo -n "Stopping OMC service ... "
|
echo -n "Stopping OMC service ... "
|
||||||
|
systemctl daemon-reload
|
||||||
|
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
|
||||||
systemctl stop restagent.service
|
systemctl stop restagent.service
|
||||||
systemctl stop crontask.service
|
systemctl stop crontask.service
|
||||||
systemctl stop sshsvc.service
|
systemctl stop sshsvc.service
|
||||||
systemctl stop captrace.service
|
systemctl stop captrace.service
|
||||||
|
fi
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
||||||
|
FERootDir=/usr/local/omc/htdocs/front
|
||||||
|
|
||||||
# apt-get install zip
|
# apt-get install zip
|
||||||
# clear front-end old hash js files
|
# clear front-end old hash js files
|
||||||
rm -rf ${FERootDir}/assets
|
rm -rf ${FERootDir}/assets
|
||||||
rm -rf ${FERootDir}/js
|
rm -rf ${FERootDir}/js
|
||||||
rm -rf ${FERootDir}/index.*.js
|
rm -rf ${FERootDir}/index.*.js
|
||||||
|
|
||||||
|
|
||||||
@@ -100,8 +100,8 @@ if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n "Starting OMC service ... "
|
echo -n "Starting OMC service ... "
|
||||||
systemctl restart crontask.service
|
systemctl start crontask.service
|
||||||
systemctl restart sshsvc.service
|
systemctl start sshsvc.service
|
||||||
systemctl restart captrace.service
|
systemctl start captrace.service
|
||||||
systemctl restart restagent.service
|
systemctl start restagent.service
|
||||||
echo "done"
|
echo "done"
|
||||||
@@ -1,18 +1,19 @@
|
|||||||
# !/bin/bash
|
# !/bin/bash
|
||||||
|
|
||||||
FERootDir=/usr/local/omc/htdocs/front
|
|
||||||
|
|
||||||
echo -n "Stopping OMC service ... "
|
echo -n "Stopping OMC service ... "
|
||||||
|
systemctl daemon-reload
|
||||||
|
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
|
||||||
systemctl stop restagent.service
|
systemctl stop restagent.service
|
||||||
systemctl stop crontask.service
|
systemctl stop crontask.service
|
||||||
systemctl stop sshsvc.service
|
systemctl stop sshsvc.service
|
||||||
systemctl stop captrace.service
|
systemctl stop captrace.service
|
||||||
|
fi
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
||||||
|
FERootDir=/usr/local/omc/htdocs/front
|
||||||
|
|
||||||
# apt-get install zip
|
# apt-get install zip
|
||||||
# clear front-end old hash js files
|
# clear front-end old hash js files
|
||||||
rm -rf ${FERootDir}/assets
|
rm -rf ${FERootDir}/assets
|
||||||
rm -rf ${FERootDir}/js
|
rm -rf ${FERootDir}/js
|
||||||
rm -rf ${FERootDir}/index.*.js
|
rm -rf ${FERootDir}/index.*.js
|
||||||
|
|
||||||
|
|
||||||
Reference in new issue
Block a user