# !/bin/bash 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 crontask.service systemctl stop sshsvc.service systemctl stop captrace.service fi echo "done" FERootDir=/usr/local/omc/htdocs/front # apt-get install zip # clear front-end old hash js files rm -rf ${FERootDir}/assets rm -rf ${FERootDir}/js rm -rf ${FERootDir}/index.*.js