Change variable name: _dane_hosts -> _processed_hosts

This commit is contained in:
Christoph 2016-11-20 11:42:09 +01:00
parent d8880d36c7
commit d2abf4ea40

View File

@ -1281,14 +1281,14 @@ declare -a zone_to_reload_arr
declare -a _tmp_arr declare -a _tmp_arr
certs_updated=false certs_updated=false
_dane_hosts="\$(cat \$_logfile | grep "Certificate has been produced" 2> /dev/null | awk '{print\$3}')" _processed_hosts="\$(cat \$_logfile | grep "Certificate has been produced" 2> /dev/null | awk '{print\$3}')"
# - Evaluate dehydrated's output - see if certificates where created # - Evaluate dehydrated's output - see if certificates where created
# - # -
if grep -i "Hook:" \$_logfile > /dev/null 2>&1 ; then if grep -i "Hook:" \$_logfile > /dev/null 2>&1 ; then
certs_updated=true certs_updated=true
for hostname in \$_dane_hosts ; do for hostname in \$_processed_hosts ; do
# --- # ---
# - Services to restart after changing/adding the certificate # - Services to restart after changing/adding the certificate