From e874ddfa97c442704b3729f2aff5c0525fa3f0f0 Mon Sep 17 00:00:00 2001 From: liberodark Date: Fri, 20 Dec 2019 11:01:50 +0100 Subject: [PATCH] Update wireguard-install.sh --- wireguard-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wireguard-install.sh b/wireguard-install.sh index 66bd366..6244d5b 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -104,7 +104,7 @@ echo "Remove WireGuard Server ($distribution)" if [ "$distribution" = "CentOS" ] || [ "$distribution" = "Red\ Hat" ] || [ "$distribution" = "Oracle" ]; then systemctl stop wg-quick@wg0.service > /dev/null 2>&1 systemctl disable wg-quick@wg0.service > /dev/null 2>&1 - sudo rm /etc/yum.repos.d/wireguard.repo + rm -f /etc/yum.repos.d/wireguard.repo yum remove -y wireguard-dkms wireguard-tools > /dev/null 2>&1 rm -rf /etc/wireguard rm -f /etc/sysctl.d/wg.conf