dpkg/kylin/hwweb/DEBIAN/postrm

28 lines
709 B
Plaintext
Raw Normal View History

2024-05-21 07:58:47 +00:00
#!/bin/bash
2024-05-22 02:06:32 +00:00
/opt/hanvonwebscan/bin/server.sh stop
systemctl stop hanvonwebscanserver.service
2024-05-21 07:58:47 +00:00
sleep 3
2024-05-22 02:06:32 +00:00
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
echo "services uninstall is success"
2024-05-21 07:58:47 +00:00
fi
test -h /etc/systemd/system/hanvonwebscanserver
2024-05-22 02:06:32 +00:00
if [ $? -eq 0 ]; then
rm -rf /etc/systemd/system/hanvonwebscanserver
2024-05-21 07:58:47 +00:00
fi
test -e /lib/systemd/system/hanvonwebscanserver.service
2024-05-22 02:06:32 +00:00
if [ $? -eq 0 ]; then
rm -rf /lib/systemd/system/hanvonwebscanserver.service
2024-05-21 07:58:47 +00:00
fi
systemctl daemon-reload
2024-05-22 02:06:32 +00:00
test -d /opt/hanvonwebscan/
if [ $? -eq 0 ]; then
rm -rf /opt/hanvonwebscan
fi