1
0
mirror of https://github.com/php/systems.git synced 2026-03-23 23:32:12 +01:00
Files
archived-systems/process-main-zone-file
2024-03-21 16:30:09 +00:00

12 lines
276 B
Bash
Executable File

#!/bin/sh
file=/tmp/.dns.$$
if php /local/systems/maintain-master-dns.php > $file ; then
if /usr/bin/named-checkzone php.net $file ; then
cp -f $file /local/mirrors/php-main-web/public/fetch/php.net.zone
mv -f $file /etc/bind/db.php.net
systemctl reload bind9
fi
fi