gen-dh: Standardise user messages

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-08-15 12:12:01 +01:00
parent ed2f1c7cb0
commit d42d7504f9
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -1387,11 +1387,14 @@ gen_dh() {
if [ -e "$out_file" ]; then
if [ "$EASYRSA_BATCH" ]; then
# if batch is enabled, die
die "*** File $out_file already exists! ***"
die "\
DH parameters file already exists
at: $out_file"
else
# warn the user, give them a chance to force overwrite
confirm "Overwrite? " "yes" \
"*** File $out_file already exists! ***"
confirm "Overwrite? " "yes" "\
DH parameters file already exists
at: $out_file"
fi
fi