Changeset 1676
- Timestamp:
- 06/23/06 18:48:31 (2 years ago)
- Files:
-
- alternc-slavedns/trunk/slavedns (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc-slavedns/trunk/slavedns
r1675 r1676 10 10 WGET=wget 11 11 WGETFLAGS="" 12 13 [ "$1" = "-f" ] && FORCE=yes 12 14 13 15 NAMED="/etc/init.d/bind restart" … … 67 69 # HOST LOGIN PASSWORD MASTERIP 68 70 URL="" 71 HOST="" 72 PROTOCOL="" 69 73 MASTERIP="" 70 74 LOGIN="" … … 75 79 if [ -z "$PROTOCOL" ] 76 80 then 77 if [ " YES" = "$SSL" ]81 if [ "$SSL" ] 78 82 then 79 83 PROTOCOL=https … … 97 101 then 98 102 # If the slave file has changed, synchronize it. 99 if [ "$1" != "-f" ] && cmp ${CACHEDIR}/${conf}.temp ${CACHEDIR}/${conf} > /dev/null103 if ! [ "${FORCE}" ] && cmp ${CACHEDIR}/${conf}.temp ${CACHEDIR}/${conf} > /dev/null 100 104 then 101 105 echo "no change found for '${conf}'" … … 105 109 # Now parse the slave file and send it to /etc/bind/slavedns 106 110 CreateBindConf ${conf} 107 RELOAD=" YES"111 RELOAD="yes" 108 112 fi 109 113 else … … 113 117 done # Main loop on config files 114 118 115 if [ " YES" = "$RELOAD" ]119 if [ "$RELOAD" ] 116 120 then 117 121 ${NAMED} >/dev/null
