add_dkim_key.sh: fix error in setting DNS Master Server.

This commit is contained in:
Christoph 2025-02-28 00:16:12 +01:00
parent 78a1610517
commit 9ca9c86b22

View File

@ -310,7 +310,7 @@ if $terminal ; then
echo "" echo ""
echo "" echo ""
if [[ -n "${DEFAULT_KEY_SECRET}" ]] ; then if [[ -n "${DEFAULT_DNS_DKIM_ZONE_MASTER_SERVER}" ]] ; then
echononl " DNS master server [${DEFAULT_DNS_DKIM_ZONE_MASTER_SERVER}]: " echononl " DNS master server [${DEFAULT_DNS_DKIM_ZONE_MASTER_SERVER}]: "
read DNS_DKIM_ZONE_MASTER_SERVER read DNS_DKIM_ZONE_MASTER_SERVER
if [[ "X$DNS_DKIM_ZONE_MASTER_SERVER" = "X" ]] ; then if [[ "X$DNS_DKIM_ZONE_MASTER_SERVER" = "X" ]] ; then
@ -318,10 +318,10 @@ if $terminal ; then
fi fi
else else
echononl " DNS master server: " echononl " DNS master server: "
read KEY_SECRET read DNS_DKIM_ZONE_MASTER_SERVER
while [[ "X$KEY_SECRET" = "X" ]] ; do while [[ "X$DNS_DKIM_ZONE_MASTER_SERVER" = "X" ]] ; do
echo -e "\n\t\033[33m\033[1mEingabe erforderlich.\033[m\n" echo -e "\n\t\033[33m\033[1mEingabe erforderlich.\033[m\n"
echononl " Key secret: " echononl " DNS master server: "
read KEY_SECRET read KEY_SECRET
done done
fi fi