Skip to content

Commit

Permalink
openvpn.sh add GROUPID env var to set GID of 'vpn' group
Browse files Browse the repository at this point in the history
  • Loading branch information
David Personette committed Aug 17, 2017
1 parent 0b45c42 commit da3693c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openvpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ shift $(( OPTIND - 1 ))
[[ "${VPN:-""}" ]] && eval vpn $(sed 's/^\|$/"/g; s/;/" "/g' <<< $VPN)
[[ "${DNS:-""}" ]] && dns
[[ "${VPNPORT:-""}" ]] && vpnportforward "$VPNPORT"
[[ "${GROUPID:-""}" =~ ^[0-9]+$ ]] && groupmod -g $GROUPID -o vpn

if [[ $# -ge 1 && -x $(which $1 2>&-) ]]; then
exec "$@"
Expand Down

0 comments on commit da3693c

Please sign in to comment.