projects
/
mirror
/
userdir-ldap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3819c38
)
new dns fu
author
Peter Palfrader
<peter@palfrader.org>
Thu, 9 Jan 2014 09:55:38 +0000
(10:55 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Thu, 9 Jan 2014 09:55:43 +0000
(10:55 +0100)
ud-replicate
patch
|
blob
|
history
diff --git
a/ud-replicate
b/ud-replicate
index
4f2db0e
..
ef76cea
100755
(executable)
--- a/
ud-replicate
+++ b/
ud-replicate
@@
-167,21
+167,19
@@
if [ -d "/etc/postfix" -a -f "$HOST/forward-alias" ]; then
/usr/sbin/postmap hash:/etc/postfix/debian < /etc/postfix/debian || true
fi
/usr/sbin/postmap hash:/etc/postfix/debian < /etc/postfix/debian || true
fi
-r
ndc_reload
=0
+r
ebuild_zones
=0
if [ -e /var/lib/misc/thishost/dns-sshfp ]; then
if [ -e /var/lib/misc/thishost/dns-sshfp ]; then
- if ! cmp -s /var/lib/misc/thishost/dns-sshfp $tempfile; then
- /git/HOOKS/write_zonefile "$EMAILAPPEND"
- rndc_reload=1
+ if ! cmp -s /var/lib/misc/thishost/dns-sshfp "$tempfile"; then
+ rebuild_zones=1
fi
fi
if [ -e /var/lib/misc/thishost/dns-zone ]; then
fi
fi
if [ -e /var/lib/misc/thishost/dns-zone ]; then
- if ! cmp -s /var/lib/misc/thishost/dns-zone $tempfile2; then
- /git/HOOKS/write_zonefile debian.net
- rndc_reload=1
+ if ! cmp -s /var/lib/misc/thishost/dns-zone "$tempfile2"; then
+ rebuild_zones=1
fi
fi
fi
fi
-if [ "${r
ndc_reload
}" -gt 0 ]; then
- rndc reload
+if [ "${r
ebuild_zones
}" -gt 0 ]; then
+ sudo -u dnsadm /srv/dns.debian.org/bin/update-zones
fi
fi