Re-enable the use of --vars=file for init-pki

Since relaxing the rules concerning the location of vars file,
commit f4a604438d3ce5fe67a1f4db956dc42fc4ae5588, it is no longer
necessary to prohibit the use of --vars=file with 'init-pki'.

This initial prohibition was only a temporary measure and has
proven to be of no value.

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-08-17 18:20:43 +01:00
parent a80e6b289f
commit 48f7ed5f10
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -4786,10 +4786,6 @@ vars_setup
# determine how we were called, then hand off to the function responsible
case "$cmd" in
init-pki|clean-all)
if [ "$user_vars_true" ]; then
# Ref: https://github.com/OpenVPN/easy-rsa/issues/566
die "Use of '--vars=FILE init-pki' is prohibited, use '--pki-dir=DIR'"
fi
init_pki "$@"
;;
build-ca)