diff --git a/openvpn-install.sh b/openvpn-install.sh index 0714f0f..d414f05 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -81,13 +81,6 @@ function initialCheck () { checkOS } -########################################## -############### MAIN ############### -########################################## - -initialCheck - - function newclient () { echo "" echo "Do you want to protect the configuration file with a password?" @@ -152,6 +145,12 @@ function newclient () { exit } +########################################## +############### MAIN ############### +########################################## + +initialCheck + # Get Internet network interface with default route NIC=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)' | head -1)