From e4ddb22032b857dfc14af01165512ad600fb6ca2 Mon Sep 17 00:00:00 2001 From: Angristan Date: Sun, 19 Aug 2018 01:01:58 +0200 Subject: [PATCH] Move newClient () into functions section --- openvpn-install.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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)