help, status: Use EASYRSA_VARS_FILE for 'vars-file:' detection

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2023-09-24 19:31:00 +01:00
parent 1d0ecaf17b
commit cc9a19cf28
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -65,13 +65,6 @@ A list of commands is shown below:
work_dir="${EASYRSA:-undefined}"
pki_dir="${EASYRSA_PKI:-undefined}"
# vars file details
case "$found_vars" in
0) vars_status="Missing or undefined" ;;
1) vars_status="$vars" ;;
*) vars_status="WARNING: Multiple conflicting vars files!"
esac
# CA Status
if verify_ca_init test; then
CA_cert="$EASYRSA_PKI/ca.crt"
@ -92,7 +85,7 @@ A list of commands is shown below:
DIRECTORY STATUS (commands would take effect on these locations)
EASYRSA: $work_dir
PKI: $pki_dir
vars-file: $vars_status
vars-file: ${EASYRSA_VARS_FILE:-Missing or undefined}
x509-types: ${EASYRSA_EXT_DIR:-Missing or undefined}
$CA_status"