Changeset 1676


Ignore:
Timestamp:
06/23/06 18:48:31 (7 years ago)
Author:
anarcat
Message:

be more tolerant with yes flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • alternc-slavedns/trunk/slavedns

    r1675 r1676  
    1010WGET=wget 
    1111WGETFLAGS="" 
     12 
     13[ "$1" = "-f" ] && FORCE=yes 
    1214 
    1315NAMED="/etc/init.d/bind restart"  
     
    6769  # HOST LOGIN PASSWORD MASTERIP 
    6870  URL="" 
     71  HOST="" 
     72  PROTOCOL="" 
    6973  MASTERIP="" 
    7074  LOGIN="" 
     
    7579      if [ -z "$PROTOCOL" ] 
    7680      then 
    77           if [ "YES" = "$SSL" ] 
     81          if [ "$SSL" ] 
    7882          then 
    7983              PROTOCOL=https 
     
    97101      then 
    98102          # If the slave file has changed, synchronize it. 
    99           if  [ "$1" != "-f" ] && cmp ${CACHEDIR}/${conf}.temp ${CACHEDIR}/${conf} > /dev/null 
     103          if ! [ "${FORCE}" ] && cmp ${CACHEDIR}/${conf}.temp ${CACHEDIR}/${conf} > /dev/null 
    100104          then 
    101105              echo "no change found for '${conf}'" 
     
    105109              # Now parse the slave file and send it to /etc/bind/slavedns 
    106110              CreateBindConf ${conf}  
    107               RELOAD="YES" 
     111              RELOAD="yes" 
    108112          fi 
    109113      else 
     
    113117done     # Main loop on config files 
    114118 
    115 if [ "YES" = "$RELOAD" ] 
     119if [ "$RELOAD" ] 
    116120then 
    117121    ${NAMED} >/dev/null 
Note: See TracChangeset for help on using the changeset viewer.