admin/dns: check.sh pld-linux.org.mirrors pld-linux.org.template
speedy
cvs at pld-linux.org
Sat Jun 18 17:14:38 CEST 2005
Author: speedy
Date: Sat Jun 18 17:14:35 2005
New Revision: 6148
Added:
admin/dns/check.sh (contents, props changed)
admin/dns/pld-linux.org.mirrors
Modified:
admin/dns/pld-linux.org.template
Log:
- check.sh script
Added: admin/dns/check.sh
==============================================================================
--- (empty file)
+++ admin/dns/check.sh Sat Jun 18 17:14:35 2005
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+svn status -u pld-linux.org.template | grep -q 'pld-linux.org.template' >/dev/null || exit 0
+svn up -q pld-linux.org.mirrors || exit 0
+svn up -q pld-linux.org.template || exit 0
+
+. ./pld-linux.org.mirrors
+/bin/sed -e "s/%FTPMIRROR%/${FTP}/g" pld-linux.org.template >pld-linux.org.zone.tmp
+/bin/sed -e "s/%FTPMIRROR%/${FTP_TPNET}/g" pld-linux.org.template >pld-linux.org.zone-tpnet.tmp
+named-checkzone -q pld-linux.org pld-linux.org.zone.tmp || exit 0
+named-checkzone -q pld-linux.org pld-linux.org.zone-tpnet.tmp || exit 0
+mv -f pld-linux.org.zone.tmp pld-linux.org.zone
+mv -f pld-linux.org.zone.tpnet pld-linux.org.zone-tpnet
+killall -HUP named
Added: admin/dns/pld-linux.org.mirrors
==============================================================================
--- (empty file)
+++ admin/dns/pld-linux.org.mirrors Sat Jun 18 17:14:35 2005
@@ -0,0 +1,2 @@
+FTP="ftp3"
+FTP_TPNET="ftp3"
Modified: admin/dns/pld-linux.org.template
==============================================================================
--- admin/dns/pld-linux.org.template (original)
+++ admin/dns/pld-linux.org.template Sat Jun 18 17:14:35 2005
@@ -154,7 +154,7 @@
dropin CNAME cvs.pld-linux.org.
-ftp 600 CNAME ftp3
+ftp 600 CNAME %FTPMIRROR%
ftp1 A 217.73.17.117
ftp2 5400 CNAME fly.mif.pg.gda.pl.
ftp3 A 81.95.106.52
More information about the pld-cvs-commit
mailing list