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