Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
openvpn.sh derp in patern match
Browse files Browse the repository at this point in the history
  • Loading branch information
David Personette committed May 17, 2015
1 parent 85bc31f commit 794086e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openvpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ shift $(( OPTIND - 1 ))
[[ "${TIMEZONE:-""}" ]] && timezone "$TIMEZONE"
[[ "${VPN:-""}" ]] && eval vpn $(sed 's/^\|$/"/g; s/;/" "/g' <<< $VPN)

if ps -ef | grep -v openvpn.sh | grep -q openvpn; then
if ps -ef | egrep -v 'grep|openvpn.sh' | grep -q openvpn; then
echo "Service already running, please restart container to apply changes"
elif [[ $# -ge 1 && -x $(which $1 2>&-) ]]; then
exec "$@"
Expand Down

0 comments on commit 794086e

Please sign in to comment.