From d0ff91e3fe685e651afcbb90873f1f7e8bda5aef Mon Sep 17 00:00:00 2001 From: hitsword Date: Thu, 5 Mar 2020 21:44:33 +0800 Subject: [PATCH] fix bug Signed-off-by: hitsword --- uninstall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uninstall.sh b/uninstall.sh index a028d25..ee3710d 100644 --- a/uninstall.sh +++ b/uninstall.sh @@ -14,11 +14,11 @@ rm -rf /usr/local/udptools echo "删除相关服务" #判断服务模式 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 /usr/lib/systemd/system/ -name "udp2raw*" | xargs -0 rm 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 /usr/lib/systemd/system/ -name "udpspeeder*" | xargs -0 rm fi