init-pki: Remove SECOND confirmation promoting use of option 'soft'

The option 'soft' for 'init-pki' has been found to be flawed, because
keeping the 'vars' file in the PKI is now forbidden. The 'soft' option
will be removed in due course.

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2023-09-14 11:08:44 +01:00
parent eedb81e0e0
commit 7684b975ca
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -1293,15 +1293,6 @@ and initialize a fresh PKI here."
# now remove it:
case "$reset" in
hard)
# Promote use of soft init
confirm "Remove current 'vars' file? " yes "\
* SECOND WARNING!!!
* This will remove everything in your current PKI directory.
To keep your current settings use 'init-pki soft' instead.
Using 'init-pki soft' is recommended."
# # # shellcheck disable=SC2115 # Use "${var:?}"
rm -rf "$EASYRSA_PKI" || \
die "init-pki hard reset failed."