Skip to content

Commit

Permalink
openvpn.sh allow another cert file ext
Browse files Browse the repository at this point in the history
  • Loading branch information
David Personette committed Aug 16, 2017
1 parent 102a503 commit d7d63f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openvpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ 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/*.crt 2>&- | wc -w) -eq 1 ]] &&
cert=$(ls $dir/*.crt 2>&-); }
[[ -f $cert ]] || { [[ $(ls $dir/*.{cert,crt} 2>&- | wc -w) -eq 1 ]] &&
cert=$(ls $dir/*.{cert,crt} 2>&-); }

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

0 comments on commit d7d63f5

Please sign in to comment.