From e11c458543acd09661829aaf346d9c7ffededa14 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 18 Feb 2019 17:31:36 +0100 Subject: [PATCH] create_opendkim_key.sh: minor changes on script output. --- create_opendkim_key.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/create_opendkim_key.sh b/create_opendkim_key.sh index cf767c0..5d847f6 100755 --- a/create_opendkim_key.sh +++ b/create_opendkim_key.sh @@ -522,10 +522,16 @@ fi blank_line +# - We use actual timestamp as DEKIM Selector +# - +time_stamp=$(date +%s) + + if $terminal ; then echo "" echo -e " \033[1m----------\033[m" echo " DKIM Domain......................: $dkim_domain" + echo " DKIM Selector....................: $time_stamp" if $update_dns ; then echo -e " Create/Update DKIM TXT record....: \033[32mYes\033[m" echo " Domain used for DKIM TXT record..: $update_zone" @@ -576,8 +582,6 @@ else echo "" fi - -time_stamp=$(date +%s) key_dir=${key_base_dir}/${dkim_domain} dkim_domain_shortname="${dkim_domain%.*}" @@ -1112,7 +1116,7 @@ else fi -echononl " Print out public key key for domain '$dkim_domain'.." +echononl " Print out public key for domain '$dkim_domain'.." openssl rsa -in ${key_dir}/${time_stamp}.private -pubout -out ${key_dir}/${time_stamp}.public > $log_file 2>&1 if [[ $? -eq 0 ]] ; then echo_ok