When $want_init_pki is set then also skip session setup

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-04-27 14:39:24 +01:00
parent f5a3950699
commit 0238b5cdba
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -2357,7 +2357,7 @@ Sourcing the vars file will probably fail .."
# Also, integrate a partial 'init-pki' by using 'install_data_to_pki()'
#
# If EASYRSA_PKI directory exists then
if [ -d "$EASYRSA_PKI" ]; then
if [ ! "$want_init_pki" ] && [ -d "$EASYRSA_PKI" ]; then
# Temp dir session
secure_session || die "Temporary directory secure-session failed."