Changeset 1323


Ignore:
Timestamp:
08/31/05 02:02:30 (8 years ago)
Author:
lunar
Message:

alternc-slavedns: changeset fix for domain overwrite
this fixes a problem where when only one of the domains synched would
be included in the BINDINCLUDE file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/slavedns

    r1320 r1323  
    3434    done < ${CACHEDIR}/${CFILE} 
    3535    mv ${BINDDIR}/${CFILE}.$$ ${BINDDIR}/${CFILE} 
    36     echo "include \"${BINDDIR}/${CFILE}\";" >>${BINDINCLUDE}.temp 
     36    INCLUDE_STR="include \"${BINDDIR}/${CFILE}\";" 
     37 
     38    grep "${INCLUDE_STR}" ${BINDINCLUDE} || echo ${INCLUDE_STR} >>${BINDINCLUDE} 
    3739} 
    3840 
     
    6163 
    6264RELOAD="" 
    63 rm -f ${BINDINCLUDE}.temp 
    6465 
    6566for conf in `ls | grep -v slavedns.conf | grep -v '~$' ` 
     
    108109if [ "$RELOAD" ] 
    109110then 
    110     mv -f ${BINDINCLUDE}.temp ${BINDINCLUDE} 
    111111    for script in $NAMED 
    112112    do 
Note: See TracChangeset for help on using the changeset viewer.