Changeset 3175
- Timestamp:
- 06/14/12 20:10:13 (11 months ago)
- File:
-
- 1 edited
-
alternc-slavedns/trunk/alternc-slavedns (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
alternc-slavedns/trunk/alternc-slavedns
r3174 r3175 62 62 # create a new config for this host, in a tempfile 63 63 while read domain; do 64 # check if the data is valid, this will also display the domain in debug mode64 # check if the data is valid, this will also display the domain in debug mode 65 65 if echo $domain | grep -i '^\([a-z0-9]\([-a-z0-9]*[a-z0-9]\)\?\.\)*[a-z0-9]\([-a-z0-9]*[a-z0-9]\)$'; then 66 66 echo "validated domain $domain" | MaybeCat … … 120 120 [ "${DEFAULTS}" = "${conf}" -o "slavedns.conf" = "${conf}" ] && continue 121 121 URL="" 122 # source defaults122 # source defaults 123 123 . ${DEFAULTSFILE} 124 # source this site's config124 # source this site's config 125 125 . $CONFDIR/${conf} 126 126 if [ -z "$URL" ]; then … … 144 144 [ "${LOGIN}" ] && ResetWgetConf 145 145 if [ -s "${CACHEDIR}/${conf}.temp" ]; then 146 # If the slave file has changed, synchronize it.146 # If the slave file has changed, synchronize it. 147 147 if ! [ "${FORCE}" ] && cmp ${CACHEDIR}/${conf}.temp ${CACHEDIR}/${conf} > /dev/null; then 148 148 echo "no change found for '${conf}'" … … 150 150 echo "change detected for '${conf}', applying" 151 151 mv -f ${CACHEDIR}/${conf}.temp ${CACHEDIR}/${conf} 152 # Now parse the slave file and send it to /etc/bind/slavedns152 # Now parse the slave file and send it to /etc/bind/slavedns 153 153 CreateBindConf ${conf} 154 154 if named-checkconf ${BINDDIR}/${conf}; then … … 163 163 fi 164 164 fi 165 done # Main loop on config files165 done # Main loop on config files 166 166 167 167 if [ "$RELOAD" ]; then
Note: See TracChangeset
for help on using the changeset viewer.
