1
1
mirror of https://github.com/angristan/wireguard-install.git synced 2024-10-31 18:52:31 +00:00

Update wireguard-install.sh

This commit is contained in:
liberodark 2019-12-20 11:01:50 +01:00 committed by GitHub
parent 12e72fa724
commit e874ddfa97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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