1
0
mirror of synced 2025-02-07 15:59:25 +03:00
- Change the default action to 'continue' in VPN scripts
This commit is contained in:
hwdsl2 2022-02-12 12:24:26 -06:00
parent fb85eae7ba
commit 5c85b5693c
8 changed files with 18 additions and 18 deletions

View File

@ -107,10 +107,10 @@ Setup VPN clients: https://git.io/vpnclients
EOF
printf "Do you want to continue? [y/N] "
printf "Do you want to continue? [Y/n] "
read -r response
case $response in
[yY][eE][sS]|[yY])
[yY][eE][sS]|[yY]|'')
echo
echo "Adding or updating VPN user..."
echo

View File

@ -105,10 +105,10 @@ Username: $VPN_USER
EOF
printf "Do you want to continue? [y/N] "
printf "Do you want to continue? [Y/n] "
read -r response
case $response in
[yY][eE][sS]|[yY])
[yY][eE][sS]|[yY]|'')
echo
echo "Deleting VPN user..."
echo

View File

@ -26,11 +26,11 @@ abort_and_exit() {
exit 1
}
confirm_or_abort() {
continue_or_abort() {
printf '%s' "$1"
read -r response
case $response in
[yY][eE][sS]|[yY])
[yY][eE][sS]|[yY]|'')
echo
;;
*)
@ -95,7 +95,7 @@ Note: This option will disable IKEv2-only mode on this VPN server. With IKEv2-on
IPsec/L2TP and IPsec/XAuth ("Cisco IPsec") modes) in addition to IKEv2.
EOF
confirm_or_abort "Do you want to continue? [y/N] "
continue_or_abort "Do you want to continue? [Y/n] "
}
confirm_enable_ikev2_only() {
@ -107,7 +107,7 @@ Note: This option will enable IKEv2-only mode on this VPN server. With IKEv2-onl
modes) will be dropped.
EOF
confirm_or_abort "Do you want to continue? [y/N] "
continue_or_abort "Do you want to continue? [Y/n] "
}
toggle_ikev2_only() {

View File

@ -127,10 +127,10 @@ Setup VPN clients: https://git.io/vpnclients
EOF
printf "Do you want to continue? [y/N] "
printf "Do you want to continue? [Y/n] "
read -r response
case $response in
[yY][eE][sS]|[yY])
[yY][eE][sS]|[yY]|'')
echo
echo "Updating VPN users..."
echo

View File

@ -123,10 +123,10 @@ Note: You already have Libreswan version $SWAN_VER installed!
EOF
fi
printf "Do you want to continue? [y/N] "
printf "Do you want to continue? [Y/n] "
read -r response
case $response in
[yY][eE][sS]|[yY])
[yY][eE][sS]|[yY]|'')
echo
;;
*)

View File

@ -107,10 +107,10 @@ Note: You already have Libreswan version $SWAN_VER installed!
EOF
fi
printf "Do you want to continue? [y/N] "
printf "Do you want to continue? [Y/n] "
read -r response
case $response in
[yY][eE][sS]|[yY])
[yY][eE][sS]|[yY]|'')
echo
;;
*)

View File

@ -125,10 +125,10 @@ Note: You already have Libreswan version $SWAN_VER installed!
EOF
fi
printf "Do you want to continue? [y/N] "
printf "Do you want to continue? [Y/n] "
read -r response
case $response in
[yY][eE][sS]|[yY])
[yY][eE][sS]|[yY]|'')
echo
;;
*)

View File

@ -134,10 +134,10 @@ Note: You already have Libreswan version $SWAN_VER installed!
EOF
fi
printf "Do you want to continue? [y/N] "
printf "Do you want to continue? [Y/n] "
read -r response
case $response in
[yY][eE][sS]|[yY])
[yY][eE][sS]|[yY]|'')
echo
;;
*)