Skip to content

Commit

Permalink
help, status: Use EASYRSA_VARS_FILE for 'vars-file:' detection
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Sep 24, 2023
1 parent 1d0ecaf commit cc9a19c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"

Expand Down

0 comments on commit cc9a19c

Please sign in to comment.