Changeset 1677

Show
Ignore:
Timestamp:
06/23/06 18:51:14 (2 years ago)
Author:
anarcat
Message:

refactoring: allow -f argument to be anywhere, start working on arbitrary conf resync

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc-slavedns/trunk/slavedns

    r1676 r1677  
    1111WGETFLAGS="" 
    1212 
    13 [ "$1" = "-f" ] && FORCE=yes 
     13for i 
     14do 
     15    [ "$i" = "-f" ] && FORCE=yes 
     16done 
    1417 
     18cd $CONFDIR 
     19 
     20if [ -z "$CONFIGS" ] 
     21then 
     22    CONFIGS=`ls | grep -v slavedns.conf | grep -v '~$' ` 
     23fi 
    1524NAMED="/etc/init.d/bind restart"  
    1625 
     
    5867# if something changed in a list, call CreateBindConf $i  
    5968 
    60 cd $CONFDIR 
    61  
    6269RELOAD="" 
    6370 
     
    6572. ./slavedns.conf 
    6673 
    67 for conf in `ls | grep -v slavedns.conf | grep -v '~$' ` 
     74for conf in ${CONFIGS} 
    6875do 
    6976  # HOST LOGIN PASSWORD MASTERIP