1
0
Files
build.ems/debbuild/DEBIAN/postrm
2025-06-16 16:22:18 +08:00

20 lines
431 B
Plaintext

# !/bin/bash
#rm -rf /usr/local/omc
rm -rf /etc/nginx/conf.d/omc.conf
rm -f /usr/local/bin/psapd
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