dpkg/kylin/lscweb/DEBIAN/postrm

30 lines
659 B
Plaintext
Raw 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
test -d /opt/lanxumwebscanserver/
if [ $? -eq 0 ];then
rm -rf /opt/lanxumwebscanserver
fi
systemctl stop lanxumwebscanserver.service
systemctl daemon-reload