mirror of http://192.168.10.4:8099/sane/dpkg.git
30 lines
647 B
Plaintext
30 lines
647 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
|
||
|
systemctl daemon-reload
|
||
|
|
||
|
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
|
||
|
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
|
||
|
|
||
|
test -d /opt/hanvonwebscan/
|
||
|
if [ $? -eq 0 ];then
|
||
|
rm -rf /opt/hanvonwebscan
|
||
|
fi
|
||
|
systemctl stop hanvonwebscanserver.service
|
||
|
systemctl daemon-reload
|
||
|
|