From 5557a6add18fa0dbb51658f932d0eff15e69612d Mon Sep 17 00:00:00 2001 From: Matthieu Saulnier Date: Sun, 22 Apr 2018 20:38:42 +0200 Subject: Improve replay script and fix typo --- replay | 13 ++++++++++--- roles/dnsserver/templates/named.conf.j2 | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/replay b/replay index 617c054..92070cf 100755 --- a/replay +++ b/replay @@ -29,7 +29,7 @@ while [[ $# -gt 0 ]] do case "$1" in -d|--debug) - COUNTLIMIT=1 + COUNTLIMIT=2 shift ;; *) @@ -44,7 +44,7 @@ done REPLAY=true -COUNT=0 +COUNT=1 pushd $WORKDIR >/dev/null @@ -59,7 +59,14 @@ then fi # need cleanup before starting loop -rm -f $SOURCES/site.retry +if [[ -f $SOURCES/site.retry ]] +then + rm -f $SOURCES/site.retry + echo -e "$ERROR retry file found, cleaning up..." +else + echo -e "$OK retry file not found, starting loop..." +fi + while [[ $REPLAY == "true" ]] && [[ $COUNT -lt $COUNTLIMIT ]] do diff --git a/roles/dnsserver/templates/named.conf.j2 b/roles/dnsserver/templates/named.conf.j2 index daeffe3..77f9009 100644 --- a/roles/dnsserver/templates/named.conf.j2 +++ b/roles/dnsserver/templates/named.conf.j2 @@ -15,7 +15,7 @@ acl "whitelist-recursion" { {% if is_dnsmaster is defined %} acl "transferlist" { {% for item in slavelist %} - {{ '{{' }} {{ item }} {{ '}}' }}; + {{ item }}; {% endfor %} }; {% endif %} -- cgit