1
1
mirror of https://github.com/angristan/wireguard-install.git synced 2024-06-05 04:50:49 +00:00

Merge pull request #1 from kmartin26/patch-3

fix apt-get remove for debian uninstall
This commit is contained in:
liberodark 2020-04-14 18:15:00 +02:00 committed by GitHub
commit 5fe0882740
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,7 +130,7 @@ echo "Remove WireGuard Server ($distribution)"
elif [ "$distribution" = "Debian" ] || [ "$distribution" = "Raspbian" ]; then
systemctl stop wg-quick@wg0.service > /dev/null 2>&1
systemctl disable wg-quick@wg0.service > /dev/null 2>&1
apt-get install -y wireguard iptables --force-yes > /dev/null 2>&1
apt-get remove -y wireguard --force-yes > /dev/null 2>&1
rm -rf /etc/wireguard
rm -f /etc/sysctl.d/wg.conf
rm -f /etc/apt/sources.list.d/unstable.list