]> code.communitydata.science - nu-vpn-proxy.git/blobdiff - openconnect_command-ssh.sh
don't run the openconnect script in the background
[nu-vpn-proxy.git] / openconnect_command-ssh.sh
index daa1bc095612878daa6ed0bfddfc10aee940e2a9..2a875ff3370936b1cf62a5111e412273e45bb229 100755 (executable)
@@ -1,5 +1,6 @@
-#!/bin/bash
+#!/bin/bash -x
 
 
+OS="linux"
 LOG_FILE=/tmp/nu-globalprotect-saml.log
 PID_FILE=/tmp/nu-vpn-openconnect.pid
 
 LOG_FILE=/tmp/nu-globalprotect-saml.log
 PID_FILE=/tmp/nu-vpn-openconnect.pid
 
@@ -9,7 +10,7 @@ exec > $LOG_FILE
 cd ~/bin/nu-vpn-proxy
 
 ## do the authentication
 cd ~/bin/nu-vpn-proxy
 
 ## do the authentication
-eval $( ./gp-saml-gui.py -v --clientos=Linux vpn-connect2.northwestern.edu ) 
+eval $( ./gp-saml-gui.py -v --gateway --clientos=Linux vpn-connect2.northwestern.edu ) 
 
 echo "$COOKIE" | /usr/sbin/openconnect --useragent="PAN GlobalConnect" --version-string='5.1.0-101' --protocol=gp -u "$USER" --os="$OS" --passwd-on-stdin "$HOST" --csd-wrapper="hipreport-modified.sh" --reconnect-timeout 60 --script-tun --script "ocproxy -D 9052" -b --pid-file "${PID_FILE}"
 
 
 echo "$COOKIE" | /usr/sbin/openconnect --useragent="PAN GlobalConnect" --version-string='5.1.0-101' --protocol=gp -u "$USER" --os="$OS" --passwd-on-stdin "$HOST" --csd-wrapper="hipreport-modified.sh" --reconnect-timeout 60 --script-tun --script "ocproxy -D 9052" -b --pid-file "${PID_FILE}"
 

Community Data Science Collective || Want to submit a patch?