diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index a8f6c84..e8d24b8 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -98,12 +98,12 @@ 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 "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 diff --git a/debbuild/22.04/DEBIAN/preinst b/debbuild/22.04/DEBIAN/preinst index fd4a182..9a2c870 100644 --- a/debbuild/22.04/DEBIAN/preinst +++ b/debbuild/22.04/DEBIAN/preinst @@ -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 + +