dpkg/kylin/ctsweb/DEBIAN/postrm

28 lines
719 B
Bash
Executable File

#!/bin/bash
/opt/cumtennwebscan/bin/server.sh stop
systemctl stop cumtennwebscanserver.service
sleep 3
test -h /etc/systemd/system/multi-user.target.wants/cumtennwebscanserver.service
if [ $? -eq 0 ]; then
rm -rf /etc/systemd/system/multi-user.target.wants/cumtennwebscanserver.service
echo "services uninstall is success"
fi
test -h /etc/systemd/system/cumtennwebscanserver
if [ $? -eq 0 ]; then
rm -rf /etc/systemd/system/cumtennwebscanserver
fi
test -e /lib/systemd/system/cumtennwebscanserver.service
if [ $? -eq 0 ]; then
rm -rf /lib/systemd/system/cumtennwebscanserver.service
fi
systemctl daemon-reload
test -d /opt/cumtennwebscan/
if [ $? -eq 0 ]; then
rm -rf /opt/cumtennwebscan
fi