Merge branch 'TinCanTech-enable-user-vars-init-pki'

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-08-18 11:41:43 +01:00
commit 5e649344d0
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)