Changeset 1684
- Timestamp:
- 06/23/06 19:41:59 (2 years ago)
- Files:
-
- alternc-slavedns/trunk/defaults.conf (moved) (moved from alternc-slavedns/trunk/slavedns.conf) (2 diffs)
- alternc-slavedns/trunk/slavedns (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc-slavedns/trunk/defaults.conf
r1683 r1684 1 # Configuration file __SAMPLE__ forslavedns2 # this file (called slavedns.conf) WILL ALWAYS BE IGNORED by the cron task.1 # Default configuration for alternc-slavedns 2 # this file (called defaults.conf) WILL ALWAYS BE IGNORED by the cron task. 3 3 # 4 # in this directory, you must put one file for each master dns server you wish to synchronize from.5 # Each file contains shell variables and shell syntax must be correct.4 # This file is sourced from a bourne shell and shell syntax must be correct. 5 # The defaults file is sourced before the site-specific configurations 6 6 7 7 # you must set this or the full URL below 8 PROTOCOL=http s9 HOST= 10.0.0.18 PROTOCOL=http 9 HOST= 10 10 11 11 # Hostname http[s] of the master dns server, notice how it defaults to alternc setup … … 17 17 # Login of the slave to connect to the server (the primary dns administrator will give it to you.) 18 18 # optional 19 LOGIN= myaccount19 LOGIN= 20 20 21 21 # Password of the slave to connect to the server 22 22 # optional 23 PASSWORD= mypass23 PASSWORD= 24 24 25 25 # That's all. at most one hour after you put a new file in this directory, alternc-slavedns/trunk/slavedns
r1682 r1684 11 11 WGETFLAGS="" 12 12 NAMED="/etc/init.d/bind restart" 13 DEFAULTS="defaults.conf" 14 DEFAULTSFILE="${CONFDIR}/${DEFAULTS}" 13 15 14 16 for i … … 74 76 RELOAD="" 75 77 76 # source defaults77 . ./slavedns.conf78 78 79 79 for conf in ${CONFIGS} 80 80 do 81 [ "slavedns.conf" = "${conf}" ] && continue 82 # HOST LOGIN PASSWORD MASTERIP 83 URL="" 84 HOST="" 85 PROTOCOL="" 86 MASTERIP="" 87 LOGIN="" 88 PASSWORD="" 89 . ./${conf} 81 [ "${DEFAULTS}" = "${conf}" -o "slavedns.conf" = "${conf}" ] && continue 82 # source defaults 83 . ${DEFAULTSFILE} 84 # source this site's config 85 . ${conf} 90 86 if [ -z "$URL" ] 91 87 then
