17
0

don't run the openconnect script in the background

This commit is contained in:
Benjamin Mako Hill 2023-07-06 17:55:59 -07:00
parent d3e3348120
commit 0b6ace2da3

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
export OPENSSL_CONF="${HOME}/bin/nu-vpn-proxy/openssl.conf" export OPENSSL_CONF="${HOME}/bin/nu-vpn-proxy/openssl.conf"
# this allows for legacy renegotation which seems to be required now # this allows for legacy renegotation which seems to be required now
@ -7,9 +7,8 @@ SEARCH_PATTERN="ESP tunnel connected; exiting HTTPS mainloop."
# connects to SSH through openconnect and VPN # connects to SSH through openconnect and VPN
# for use with ProxyCommand in SSH # for use with ProxyCommand in SSH
# first run openconnect # first run openconnect
/sbin/start-stop-daemon --pidfile /tmp/nu-vpn-openconnect.pid -S --startas "${HOME}/bin/nu-vpn-proxy/openconnect_command-ssh.sh" & /sbin/start-stop-daemon --pidfile /tmp/nu-vpn-openconnect.pid -S --startas "${HOME}/bin/nu-vpn-proxy/openconnect_command-ssh.sh"
sleep 2 sleep 2
# kill connection on exit # kill connection on exit