# !/bin/bash #rm -rf /usr/local/omc rm -rf /etc/nginx/conf.d/omc.conf rm -f /usr/local/bin/omcd systemctl daemon-reload if systemctl list-units --type=service --all | grep -q 'restagent.service'; then echo -n "Stopping OMC service ... " systemctl stop restagent.service systemctl stop crontask.service systemctl stop sshsvc.service systemctl stop captrace.service echo "done" fi systemctl disable restagent.service systemctl disable crontask.service systemctl disable sshsvc.service systemctl disable captrace.service systemctl daemon-reload