comparison install.bash @ 77:8487650c98ee

start coding on new config syntax
author carl
date Sat, 16 Jul 2005 14:11:07 -0700
parents 81f1e400e8ab
children 505e77188317
comparison
equal deleted inserted replaced
76:81f1e400e8ab 77:8487650c98ee
34 mv /var/dnsbl/*conf $DST 34 mv /var/dnsbl/*conf $DST
35 rm /var/dnsbl/dnsbl # remove the old binary 35 rm /var/dnsbl/dnsbl # remove the old binary
36 rmdir /var/dnsbl 36 rmdir /var/dnsbl
37 fi 37 fi
38 CONF=$DST/dnsbl.conf 38 CONF=$DST/dnsbl.conf
39 if [ -f $CONF [; then 39 if [ -f $CONF ]; then
40 grep $CONF '^context' >/dev/null 40 grep '^context' $CONF >/dev/null
41 if [ $? -eq 1 ]; then 41 if [ $? -eq 1 ]; then
42 # config file exists, but it is for the older version 42 # config file exists, but it is for the older version
43 # preserve it and start over 43 # preserve it and start over
44 suf=4.old 44 suf=4.old
45 for i in dnsbl hosts-ignore html-tags tld; do 45 for i in dnsbl hosts-ignore html-tags tld; do