Changeset 1675
- Timestamp:
- 06/23/06 18:43:51 (2 years ago)
- Files:
-
- alternc-slavedns/trunk/slavedns (modified) (1 diff)
- alternc-slavedns/trunk/slavedns.conf (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc-slavedns/trunk/slavedns
r1674 r1675 66 66 do 67 67 # HOST LOGIN PASSWORD MASTERIP 68 HOST=""68 URL="" 69 69 MASTERIP="" 70 70 LOGIN="" 71 71 PASSWORD="" 72 SSL=""73 72 . ./${conf} 74 if [ -z "$HOST" -o -z "$LOGIN" -o -z "$PASSWORD" -o -z "$MASTERIP" ] 73 if [ -z "$URL" ] 74 then 75 if [ -z "$PROTOCOL" ] 76 then 77 if [ "YES" = "$SSL" ] 78 then 79 PROTOCOL=https 80 else 81 PROTOCOL=http 82 fi 83 fi 84 URL=${PROTOCOL}://${HOST}/admin/domlist.php 85 fi 86 87 if [ -z "$URL" -a -z "$HOST" -o -z "$LOGIN" -o -z "$PASSWORD" -o -z "$MASTERIP" ] 75 88 then 76 89 echo "error in the config file '${conf}'" >&2 77 90 else 78 if [ "$SSL" ]79 then80 PROTOCOL="https"81 else82 PROTOCOL="http"83 fi84 91 touch ${CACHEDIR}/${conf} 85 92 rm -f ${CACHEDIR}/${conf}.temp 86 93 SetWgetPass ${LOGIN} ${PASSWORD} 87 ${WGET} ${ PROTOCOL}://${HOST}/admin/domlist.php${WGETFLAGS} -O ${CACHEDIR}/${conf}.temp -t 1 -T ${TIMEOUT} 2>/dev/null94 ${WGET} ${URL} ${WGETFLAGS} -O ${CACHEDIR}/${conf}.temp -t 1 -T ${TIMEOUT} 2>/dev/null 88 95 ResetWgetConf 89 96 if [ -s "${CACHEDIR}/${conf}.temp" ] alternc-slavedns/trunk/slavedns.conf
r1674 r1675 5 5 # Each file contains shell variables and shell syntax must be correct. 6 6 7 PROTOCOL=https 8 HOST=10.0.0.1 9 7 10 # Hostname http[s] of the master dns server : 8 HOST=primary.example.com 11 #URL=${PROTOCOL}://${HOST}/admin/domlist.php 9 12 10 # IP Address of the master dns server :11 MASTERIP= 10.0.0.113 # IP Address of the master dns server, defaults to the contacted host 14 MASTERIP=${HOST} 12 15 13 16 # Login of the slave to connect to the server (the primary dns administrator will give it to you.) … … 16 19 # Password of the slave to connect to the server 17 20 PASSWORD=mypass 18 19 # SSL= set this variable if you want to use SSL-ecnrypted connection (https instead of http)20 # If you don't want to use SSL, __comment out this line__ (don't put a no, it won't work ;) )21 SSL=yes22 21 23 22 # That's all. at most one hour after you put a new file in this directory,
