20 lines
429 B
Plaintext
20 lines
429 B
Plaintext
# !/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 sshsvc.service
|
|
echo "done"
|
|
fi
|
|
|
|
systemctl disable restagent.service
|
|
systemctl disable sshsvc.service
|
|
|
|
systemctl daemon-reload
|