From 484bc56acc19091b1373198ccfc1b5b6f96396ad Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Sat, 9 Apr 2022 19:28:18 +0100 Subject: [PATCH] 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 --- easyrsa3/easyrsa | 9 --------- 1 file changed, 9 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 9369cea..2eac27d 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -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