Changeset 3173
- Timestamp:
- 06/14/12 20:04:51 (11 months ago)
- File:
-
- 1 edited
-
alternc-slavedns/trunk/alternc-slavedns (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
alternc-slavedns/trunk/alternc-slavedns
r3119 r3173 48 48 ;; 49 49 *) 50 CONFIGS="${CONFIGS} ${i}"50 CONFIGS="${CONFIGS} ${i}" 51 51 ;; 52 52 esac … … 158 158 then 159 159 # If the slave file has changed, synchronize it. 160 if ! [ "${FORCE}" ] && cmp ${CACHEDIR}/${conf}.temp ${CACHEDIR}/${conf} > /dev/null161 then162 echo "no change found for '${conf}'"163 else164 echo "change detected for '${conf}', applying"165 mv -f ${CACHEDIR}/${conf}.temp ${CACHEDIR}/${conf}166 # Now parse the slave file and send it to /etc/bind/slavedns167 CreateBindConf ${conf}168 if named-checkconf ${BINDDIR}/${conf}169 then170 RELOAD="yes"171 else172 echo "error: file ${conf} is not correct"173 fi174 fi160 if ! [ "${FORCE}" ] && cmp ${CACHEDIR}/${conf}.temp ${CACHEDIR}/${conf} > /dev/null 161 then 162 echo "no change found for '${conf}'" 163 else 164 echo "change detected for '${conf}', applying" 165 mv -f ${CACHEDIR}/${conf}.temp ${CACHEDIR}/${conf} 166 # Now parse the slave file and send it to /etc/bind/slavedns 167 CreateBindConf ${conf} 168 if named-checkconf ${BINDDIR}/${conf} 169 then 170 RELOAD="yes" 171 else 172 echo "error: file ${conf} is not correct" 173 fi 174 fi 175 175 else 176 176 echo "downloaded file for '${conf}' has zero size" … … 178 178 fi 179 179 fi 180 done # Main loop on config files180 done # Main loop on config files 181 181 182 182 if [ "$RELOAD" ]
Note: See TracChangeset
for help on using the changeset viewer.
