fix zone check

This commit is contained in:
Hannaeko 2021-07-29 23:37:29 +02:00
parent 59cfc3b356
commit 550805bff1

View file

@ -15,8 +15,8 @@ deploy:
script: script:
- | - |
for zonefile in zones/*; do for zonefile in zones/*; do
zone=$(basename $zonefile) zone=$(basename $zonefile .zone)
kzonecheck -v -o $zone zone/$zonefile kzonecheck -v -o $zone $zonefile
echo $(echo -n $zone | sha1sum | cut -f1 -d' ').zones 0 IN PTR $zone. >> catalog-zones/dns-witch-catalog.zone echo $(echo -n $zone | sha1sum | cut -f1 -d' ').zones 0 IN PTR $zone. >> catalog-zones/dns-witch-catalog.zone
done done
- '[ -n "$(git diff --name-only HEAD~ zones)" ] && scp $(git diff --name-only HEAD~ zones) ${SSH_PRIMARY_NS}:/var/lib/knot/zones' - '[ -n "$(git diff --name-only HEAD~ zones)" ] && scp $(git diff --name-only HEAD~ zones) ${SSH_PRIMARY_NS}:/var/lib/knot/zones'