This commit is contained in:
Hannaeko 2021-07-29 22:58:52 +02:00
parent 39e9de8c77
commit 9c9c4bdd4c

View file

@ -18,6 +18,6 @@ deploy:
zone=$(basename $zonefile)
echo $(echo -n $zone | sha1sum | cut -f1 -d' ').zones 0 IN PTR $zone. >> catalog-zone/dns-witch-catalog.zone
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'
- scp catalog-zones ${SSH_PRIMARY_NS}:/var/lib/knot
- ssh ${SSH_PRIMARY_NS} 'chown -R knot:knot /var/lib/knot/{zones,catalog-zones} && knotc reload'