1
1
mirror of https://github.com/angristan/wireguard-install.git synced 2024-06-01 03:00:47 +00:00

Fix uninstall for Debian & Ubuntu

This commit is contained in:
Stanislas Lange 2020-07-31 15:49:49 +02:00
parent 65a12d6d0c
commit 6aa6b7ab03
No known key found for this signature in database
GPG Key ID: 710D9597C7EAD8CF

View File

@ -289,14 +289,10 @@ function uninstallWg() {
systemctl disable "wg-quick@$SERVER_WG_NIC"
if [[ $OS == 'ubuntu' ]]; then
apt-get remove --purge -y wireguard qrencode
apt-get autoremove --purge -y wireguard qrencode
add-apt-repository -y -r ppa:wireguard/wireguard
apt-get autoremove -y
elif [[ $OS == 'debian' ]]; then
apt-get remove --purge -y wireguard qrencode
rm -f "/etc/apt/sources.list.d/unstable.list"
rm -f "/etc/apt/preferences.d/limit-unstable"
apt-get autoremove -y
apt-get autoremove --purge -y wireguard qrencode
elif [[ $OS == 'fedora' ]]; then
dnf remove -y wireguard-tools qrencode
if [[ $VERSION_ID -lt 32 ]]; then