Cleanup
- Change the default action to 'continue' in VPN scripts
This commit is contained in:
parent
fb85eae7ba
commit
5c85b5693c
@ -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
|
||||
|
@ -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
|
||||
|
@ -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() {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
;;
|
||||
*)
|
||||
|
@ -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
|
||||
;;
|
||||
*)
|
||||
|
@ -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
|
||||
;;
|
||||
*)
|
||||
|
@ -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
|
||||
;;
|
||||
*)
|
||||
|
Loading…
x
Reference in New Issue
Block a user