dpkg/kylin/lscweb/DEBIAN/postrm

30 lines
647 B
Bash
Executable File

#!/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/lanxumwebscan/
if [ $? -eq 0 ];then
rm -rf /opt/lanxumwebscan
fi
systemctl stop lanxumwebscanserver.service
systemctl daemon-reload