Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikesavtechnology/4e406918a8fab6fcaff943eb582425ea to your computer and use it in GitHub Desktop.
Save mikesavtechnology/4e406918a8fab6fcaff943eb582425ea to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if [ -z "$OPENVPN_AS_NOEXPORT" ]; then
export PYOVPN_VERSION="2.1.6"
export OPENVPN_AS_BASE="/usr/local/openvpn_as"
export OPENVPN_AS_CONFIG="/usr/local/openvpn_as/etc/as.conf"
export PATH="/usr/local/openvpn_as/scripts:/usr/local/openvpn_as/bin:/usr/local/openvpn_as/sbin:$PATH"
export LD_LIBRARY_PATH="/usr/local/openvpn_as/lib"
export PYTHONHOME="/usr/local/openvpn_as"
fi
export PYOVPN_CMDNAME="sacli"
python -c "from pyovpn.sagent.sagent_entry import sacli ; sacli()" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment