EASYRSA_PKI might not be defined.

This commit is contained in:
Robin Schneider
2015-03-13 00:43:50 +01:00
parent e6e2221d8b
commit fd4a5dc38e
2 changed files with 12 additions and 2 deletions

View File

@ -9,6 +9,9 @@ if ! source "$OPENVPN/ovpn_env.sh"; then
echo "Could not source $OPENVPN/ovpn_env.sh."
exit 1
fi
if [ -z "$EASYRSA_PKI" ]; then
export EASYRSA_PKI="$OPENVPN/pki"
fi
pushd "$EASYRSA_PKI"
for name in issued/*.crt; do