mirror of http://192.168.10.4:8099/sane/dpkg.git
28 lines
709 B
Bash
Executable File
28 lines
709 B
Bash
Executable File
#!/bin/bash
|
|
/opt/hanvonwebscan/bin/server.sh stop
|
|
systemctl stop hanvonwebscanserver.service
|
|
sleep 3
|
|
|
|
test -h /etc/systemd/system/multi-user.target.wants/hanvonwebscanserver.service
|
|
if [ $? -eq 0 ]; then
|
|
rm -rf /etc/systemd/system/multi-user.target.wants/hanvonwebscanserver.service
|
|
echo "services uninstall is success"
|
|
fi
|
|
|
|
test -h /etc/systemd/system/hanvonwebscanserver
|
|
if [ $? -eq 0 ]; then
|
|
rm -rf /etc/systemd/system/hanvonwebscanserver
|
|
fi
|
|
|
|
test -e /lib/systemd/system/hanvonwebscanserver.service
|
|
if [ $? -eq 0 ]; then
|
|
rm -rf /lib/systemd/system/hanvonwebscanserver.service
|
|
fi
|
|
|
|
systemctl daemon-reload
|
|
|
|
test -d /opt/hanvonwebscan/
|
|
if [ $? -eq 0 ]; then
|
|
rm -rf /opt/hanvonwebscan
|
|
fi
|