mirror of
https://github.com/angristan/wireguard-install.git
synced 2025-04-04 19:43:29 +03:00
Add more warnings for uninstall option
Fix https://github.com/angristan/wireguard-install/pull/176
This commit is contained in:
parent
7565f26b5d
commit
424a92d1e0
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue