From 424a92d1e01f34d02974c82de3f08252212eb464 Mon Sep 17 00:00:00 2001 From: Stanislas Lange Date: Sun, 22 Jan 2023 10:45:15 +0100 Subject: [PATCH] Add more warnings for uninstall option Fix https://github.com/angristan/wireguard-install/pull/176 --- wireguard-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wireguard-install.sh b/wireguard-install.sh index b6bf2db..b61e6a4 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -407,6 +407,8 @@ function revokeClient() { function uninstallWg() { echo "" + echo "WARNING: This will uninstall WireGuard and remove all the configuration files!" + echo "Please backup the /etc/wireguard directory if you want to keep your configuration files." read -rp "Do you really want to remove WireGuard? [y/n]: " -e REMOVE REMOVE=${REMOVE:-n} if [[ $REMOVE == 'y' ]]; then