Add helpful Warnings to promote preferred use of PKI/vars
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
parent
17ebec2a3e
commit
6e2d139177
@ -2136,10 +2136,11 @@ Sourcing the vars file will probably fail ..
|
|||||||
# shellcheck disable=1090 # can't follow non-constant source. vars
|
# shellcheck disable=1090 # can't follow non-constant source. vars
|
||||||
. "$vars"
|
. "$vars"
|
||||||
notice "Note: using Easy-RSA configuration from: $vars"
|
notice "Note: using Easy-RSA configuration from: $vars"
|
||||||
|
[ "$vars_in_pki" ] || \
|
||||||
|
warn "Move your vars file to your PKI folder, where it is safe!"
|
||||||
else
|
else
|
||||||
# $vars remains undefined .. no vars found
|
# $vars remains undefined .. no vars found
|
||||||
# Warning already issued!
|
warn "No vars file found! Please create one in your PKI folder."
|
||||||
: # ok
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# EASYRSA_NO_VARS is defined or want_init_pki, no vars is required.
|
# EASYRSA_NO_VARS is defined or want_init_pki, no vars is required.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user