Changeset 3173


Ignore:
Timestamp:
06/14/12 20:04:51 (11 months ago)
Author:
anarcat
Message:

untabify

File:
1 edited

Legend:

Unmodified
Added
Removed
  • alternc-slavedns/trunk/alternc-slavedns

    r3119 r3173  
    4848             ;; 
    4949         *) 
    50                  CONFIGS="${CONFIGS} ${i}" 
     50                 CONFIGS="${CONFIGS} ${i}" 
    5151             ;; 
    5252    esac 
     
    158158      then 
    159159          # If the slave file has changed, synchronize it. 
    160           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 
     160          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 
    175175      else 
    176176          echo "downloaded file for '${conf}' has zero size" 
     
    178178      fi 
    179179  fi 
    180 done    # Main loop on config files 
     180done    # Main loop on config files 
    181181 
    182182if [ "$RELOAD" ] 
Note: See TracChangeset for help on using the changeset viewer.