Fail with error to create EASYRSA_TEMP_DIR

Signed-off-by: Richard Bonhomme <tincanteksup@gmail.com>
This commit is contained in:
Richard Bonhomme 2019-06-11 01:29:04 +01:00
parent ad3b35644d
commit e426db231d
No known key found for this signature in database
GPG Key ID: D7D49FA009D95091

View File

@ -1603,7 +1603,7 @@ Note: using Easy-RSA configuration from: $vars"
EASYRSA_TEMP_DIR_session="$(mktemp -du "$EASYRSA_TEMP_DIR/easy-rsa-$$.XXXXXX")"
else
# If the directory does not exist then we have not run init-pki
mkdir -p "$EASYRSA_TEMP_DIR"
mkdir -p "$EASYRSA_TEMP_DIR" || die "Cannot create $EASYRSA_TEMP_DIR (permission?)"
EASYRSA_TEMP_DIR_session="$(mktemp -du "$EASYRSA_TEMP_DIR/easy-rsa-$$.XXXXXX")"
rm -rf "$EASYRSA_TEMP_DIR"
fi