Skip to content

Commit

Permalink
openvpn.sh modify for dperson#79
Browse files Browse the repository at this point in the history
  • Loading branch information
David Personette committed Aug 16, 2017
1 parent d7d63f5 commit 1da482f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openvpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ auth="$dir/vpn.cert_auth"
conf="$dir/vpn.conf"
cert="$dir/vpn-ca.crt"
file="$dir/.firewall"
[[ -f $conf ]] || { [[ $(ls $dir/*.{conf,ovpn} 2>&- | wc -w) -eq 1 ]] &&
conf=$(ls $dir/*.{conf,ovpn} 2>&-); }
[[ -f $cert ]] || { [[ $(ls $dir/*.{cert,crt} 2>&- | wc -w) -eq 1 ]] &&
cert=$(ls $dir/*.{cert,crt} 2>&-); }
[[ -f $conf ]] || { [[ $(ls $dir/*|egrep '\.(conf|ovpn)$' 2>&-|wc -w) -eq 1 ]]&&
conf=$(ls $dir/* | egrep '\.(conf|ovpn)$' 2>&-); }
[[ -f $cert ]] || { [[ $(ls $dir/* | egrep '\.ce?rt$' 2>&- | wc -w) -eq 1 ]] &&
cert=$(ls $dir/* | egrep '\.ce?rt$' 2>&-); }

### cert_auth: setup auth passwd for accessing certificate
# Arguments:
Expand Down

0 comments on commit 1da482f

Please sign in to comment.