2
0

feat: support build deb

This commit is contained in:
zhangsz
2025-02-19 14:38:52 +08:00
parent b550614a4a
commit a208cc75d4
9 changed files with 63 additions and 131 deletions

21
debbuild/DEBIAN/postrm Normal file → Executable file
View File

@@ -1,23 +1,6 @@
# !/bin/bash
#rm -rf /usr/local/omc
rm -rf /etc/nginx/conf.d/omc.conf
rm -f /usr/local/bin/omcd
systemctl daemon-reload
# systemctl stop wfccontrol.service
systemctl disable wfccontrol.service
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