1
0
Files
build.ems/debbuild/22.04/DEBIAN/postrm
2025-06-17 09:57:45 +08:00

20 lines
430 B
Plaintext
Executable File

# !/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 PSAP service ... "
systemctl stop restagent.service
systemctl stop sshsvc.service
echo "done"
fi
systemctl disable restagent.service
systemctl disable sshsvc.service
systemctl daemon-reload