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
|
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
|
||||||
|
@ -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
|
||||||
|
@ -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() {
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -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
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -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
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -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
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user