X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-replicate;h=db384e3429c0e9a18c8199974b455ad2031baccf;hb=ff9e64a52c766a71ad52c76d7510a7d105bf2eb1;hp=4f2db0eda6ffdf3bd14ece04024e0a815871a18b;hpb=acb95c57a55058d3fee491f8b5f8c55cb494392c;p=mirror%2Fuserdir-ldap.git diff --git a/ud-replicate b/ud-replicate index 4f2db0e..db384e3 100755 --- a/ud-replicate +++ b/ud-replicate @@ -167,21 +167,32 @@ if [ -d "/etc/postfix" -a -f "$HOST/forward-alias" ]; then /usr/sbin/postmap hash:/etc/postfix/debian < /etc/postfix/debian || true fi -rndc_reload=0 +rebuild_zones=0 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 - 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 -if [ "${rndc_reload}" -gt 0 ]; then - rndc reload +if [ "${rebuild_zones}" -gt 0 ]; then + sudo -u dnsadm /srv/dns.debian.org/bin/update +fi + +if [ -d "/etc/freeradius" -a -e "$HOST/rtc-passwords" ]; then + install -o freerad -g freerad -m 400 "$HOST/rtc-passwords" /var/local/rtc-passwords.freerad + service freeradius reload +fi +if [ -d "/etc/reTurn" -a -e "$HOST/rtc-passwords" ]; then + install -o return -g return -m 400 "$HOST/rtc-passwords" /var/local/rtc-passwords.return + service resiprocate-turn-server reload +fi +if [ -d "/etc/prosody" -a -e "$HOST/rtc-passwords" ]; then + install -o prosody -g prosody -m 400 "$HOST/rtc-passwords" /var/local/rtc-passwords.prosody + service prosody reload fi