dpkg/kylin/hwweb/DEBIAN/postrm

30 lines
647 B
Plaintext
Raw Normal View History

2024-05-21 07:58:47 +00:00
#!/bin/bash
systemctl daemon-reload
sleep 3
test -h /etc/systemd/system/multi-user.target.wants/hanvonwebscanserver.service
if [ $? -eq 0 ];then
rm -rf /etc/systemd/system/multi-user.target.wants/hanvonwebscanserver.service
fi
test -h /etc/systemd/system/hanvonwebscanserver
if [ $? -eq 0 ];then
rm -rf /etc/systemd/system/hanvonwebscanserver
fi
test -e /lib/systemd/system/hanvonwebscanserver.service
if [ $? -eq 0 ];then
rm -rf /lib/systemd/system/hanvonwebscanserver.service
fi
test -d /opt/hanvonwebscan/
if [ $? -eq 0 ];then
rm -rf /opt/hanvonwebscan
fi
systemctl stop hanvonwebscanserver.service
systemctl daemon-reload