Signed-off-by: hitsword <admin@hitsword.com>
master
hitsword 2020-03-05 21:44:33 +08:00
parent 5ebae417f1
commit d0ff91e3fe
1 changed files with 2 additions and 2 deletions

View File

@ -14,11 +14,11 @@ rm -rf /usr/local/udptools
echo "删除相关服务" echo "删除相关服务"
#判断服务模式 #判断服务模式
if pgrep systemd-journal > /dev/null; then if pgrep systemd-journal > /dev/null; then
if ls /usr/lib/systemd/system/ | grep -q -e "udp2raw*.service"; then if ls /usr/lib/systemd/system/ | grep -q -e "udp2raw*"; then
find /etc/systemd/system/ -name "udp2raw*" | xargs -0 rm find /etc/systemd/system/ -name "udp2raw*" | xargs -0 rm
find /usr/lib/systemd/system/ -name "udp2raw*" | xargs -0 rm find /usr/lib/systemd/system/ -name "udp2raw*" | xargs -0 rm
fi fi
if ls /usr/lib/systemd/system/ | grep -q -e "udpspeeder*.service"; then if ls /usr/lib/systemd/system/ | grep -q -e "udpspeeder*"; then
find /etc/systemd/system/ -name "udpspeeder*" | xargs -0 rm find /etc/systemd/system/ -name "udpspeeder*" | xargs -0 rm
find /usr/lib/systemd/system/ -name "udpspeeder*" | xargs -0 rm find /usr/lib/systemd/system/ -name "udpspeeder*" | xargs -0 rm
fi fi