Remove redundant Create $EASYRSA_SSL_CONF

The config file is unambiguously and previously created by
install_data_to_pki().

The config file location is exported in the previous command.

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-04-09 19:28:18 +01:00
parent ccec36d3ea
commit 484bc56acc
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -2225,15 +2225,6 @@ recommended - please remove it from there before continuing."
die "Failed to find Safe-SSL config file."
fi
# Upgrade to 306: Create $EASYRSA_SSL_CONF if it does not exist
# but only if $EASYRSA_PKI exists.
if [ -d "$EASYRSA_PKI" ] && [ -e "$EASYRSA/openssl-easyrsa.cnf" ] && \
[ ! -e "$EASYRSA_SSL_CONF" ]
then
cp "$EASYRSA/openssl-easyrsa.cnf" "$EASYRSA_SSL_CONF"
easyrsa_openssl makesafeconf
fi
else
# If the directory does not exist then we have not run init-pki
if mkdir -p "$EASYRSA_TEMP_DIR"; then