dpkg/kylin/lscweb/DEBIAN/postrm

30 lines
647 B
Plaintext
Raw Permalink Normal View History

2022-07-04 08:39:15 +00:00
#!/bin/bash
systemctl daemon-reload
sleep 3
test -h /etc/systemd/system/multi-user.target.wants/lanxumwebscanserver.service
if [ $? -eq 0 ];then
rm -rf /etc/systemd/system/multi-user.target.wants/lanxumwebscanserver.service
fi
test -h /etc/systemd/system/lanxumwebscanserver
if [ $? -eq 0 ];then
rm -rf /etc/systemd/system/lanxumwebscanserver
fi
test -e /lib/systemd/system/lanxumwebscanserver.service
if [ $? -eq 0 ];then
rm -rf /lib/systemd/system/lanxumwebscanserver.service
fi
2022-07-04 08:57:43 +00:00
test -d /opt/lanxumwebscan/
2022-07-04 08:39:15 +00:00
if [ $? -eq 0 ];then
2022-07-04 08:57:43 +00:00
rm -rf /opt/lanxumwebscan
2022-07-04 08:39:15 +00:00
fi
systemctl stop lanxumwebscanserver.service
systemctl daemon-reload