diff --git a/bibVPN.sh b/bibVPN.sh index 58ee703..b98fce2 100755 --- a/bibVPN.sh +++ b/bibVPN.sh @@ -54,7 +54,7 @@ case "$1" in VPN_EXECUTABLE_PARAMS="--servercert $4 --protocol=fortinet" # Optional # VPN connection command, should eventually result in $VPN_CONNECTED, # may need to be modified for VPN clients other than openconnect - echo "echo PASSWORT | sudo $VPN_EXECUTABLE $VPN_EXECUTABLE_PARAMS --user $VPN_USERNAME --passwd-on-stdin $VPN_HOST --pid-file=$OC_PIDFILE --background" > $logfile 2>&1 + echo "echo $VPN_PASSWORD | sudo $VPN_EXECUTABLE $VPN_EXECUTABLE_PARAMS --user $VPN_USERNAME --passwd-on-stdin $VPN_HOST --pid-file=$OC_PIDFILE --background" > $logfile 2>&1 echo "$VPN_PASSWORD" | sudo $VPN_EXECUTABLE $VPN_EXECUTABLE_PARAMS --user $VPN_USERNAME --passwd-on-stdin $VPN_HOST --pid-file=$OC_PIDFILE --background > $logfile 2>&1 IP=$(ifconfig | egrep -A1 'inet $NET_FILTER' |cut -d' ' -f2) @@ -108,8 +108,7 @@ else cfgPubKey=$(echo $config|cut -d',' -f4) echo "Connect $cfgName VPN | bash='$0' param1=connect param2=$cfgMail param3=$cfgHost param4=$cfgPubKey terminal=false refresh=true" done - #echo "Connect Admin VPN | bash='$0' param1=connect param2=admsct@bib.de terminal=false refresh=true" - #echo "Connect ScT VPN | bash='$0' param1=connect param2=thomas.schmauder@bib.de terminal=false refresh=true" + if [[ $SHOW_SETTINGS == "ON" ]]; then echo "---" echo "Settings"