1
0
mirror of synced 2025-03-19 14:33:52 +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 EOF
printf "Do you want to continue? [y/N] " printf "Do you want to continue? [Y/n] "
read -r response read -r response
case $response in case $response in
[yY][eE][sS]|[yY]) [yY][eE][sS]|[yY]|'')
echo echo
echo "Adding or updating VPN user..." echo "Adding or updating VPN user..."
echo echo

View File

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

View File

@ -26,11 +26,11 @@ abort_and_exit() {
exit 1 exit 1
} }
confirm_or_abort() { continue_or_abort() {
printf '%s' "$1" printf '%s' "$1"
read -r response read -r response
case $response in case $response in
[yY][eE][sS]|[yY]) [yY][eE][sS]|[yY]|'')
echo 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. IPsec/L2TP and IPsec/XAuth ("Cisco IPsec") modes) in addition to IKEv2.
EOF 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() { 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. modes) will be dropped.
EOF EOF
confirm_or_abort "Do you want to continue? [y/N] " continue_or_abort "Do you want to continue? [Y/n] "
} }
toggle_ikev2_only() { toggle_ikev2_only() {

View File

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

View File

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

View File

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

View File

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

View File

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