Updated VPN toggle with timezone fix -- seems to work?
This commit is contained in:
@@ -6,10 +6,10 @@
|
|||||||
if pgrep gpclient &>/dev/null; then
|
if pgrep gpclient &>/dev/null; then
|
||||||
# VPN is connected, so disconnect
|
# VPN is connected, so disconnect
|
||||||
echo "Disconnecting from VPN..."
|
echo "Disconnecting from VPN..."
|
||||||
pkexec gpclient disconnect
|
pkexec env TZ=Etc/UTC gpclient disconnect
|
||||||
else
|
else
|
||||||
# VPN is disconnected, so connect
|
# VPN is disconnected, so connect
|
||||||
echo "Connecting to VPN..."
|
echo "Connecting to VPN..."
|
||||||
# pkexec doesn't pass the DISPLAY and XAUTHORITY environment variables, so we need to pass them manually
|
# pkexec doesn't pass the DISPLAY and XAUTHORITY environment variables, so we need to pass them manually
|
||||||
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gpclient connect gp.usu.edu
|
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY TZ=Etc/UTC gpclient connect gp.usu.edu
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user