dpkg/kylin/lscwebscan/DEBIAN/postrm

30 lines
638 B
Bash
Executable File

#!/bin/bash
systemctl daemon-reload
sleep 3
test -h /etc/systemd/system/multi-user.target.wants/lanxumwebapiserver.service
if [ $? -eq 0 ];then
rm -rf /etc/systemd/system/multi-user.target.wants/lanxumwebapiserver.service
fi
test -h /etc/systemd/system/lanxumwebapiserver
if [ $? -eq 0 ];then
rm -rf /etc/systemd/system/lanxumwebapiserver
fi
test -e /lib/systemd/system/lanxumwebapiserver.service
if [ $? -eq 0 ];then
rm -rf /lib/systemd/system/lanxumwebapiserver.service
fi
test -d /opt/lanxumwebapi/
if [ $? -eq 0 ];then
rm -rf /opt/lanxumwebapi
fi
systemctl stop lanxumwebapiserver.service
systemctl daemon-reload