comparison install.bash @ 41:d95af8129dfa

updates for 3.2, changing file layout, add queueid to messages
author carl
date Mon, 05 Jul 2004 10:52:02 -0700
parents ccf2c2651c1d
children afcf403709ef
comparison
equal deleted inserted replaced
40:dc3d8d1aa2d2 41:d95af8129dfa
22 exit 22 exit
23 fi 23 fi
24 24
25 25
26 ##################### 26 #####################
27 # ensure the user is created
28 /usr/bin/getent passwd dnsbl || useradd -r -d /etc/dnsbl -M -c "dnsbl pseudo-user" -s /sbin/nologin dnsbl
27 # install the milter 29 # install the milter
28 DST=/var/dnsbl 30 DST=/etc/dnsbl
29 mkdir -p $DST 31 mkdir -p $DST
32 if [ -f /var/dnsbl/dnsbl.conf ]; then
33 # move the conf files to the new location
34 mv /var/dnsbl/*conf $DST
35 rm /var/dnsbl/dnsbl # remove the old binary
36 rmdir /var/dnsbl
37 fi
30 if [ ! -f $DST/dnsbl.conf ]; then 38 if [ ! -f $DST/dnsbl.conf ]; then
31 cp dnsbl.conf $DST 39 cp dnsbl.conf $DST
32 fi 40 fi
33 if [ ! -f $DST/html-tags.conf ]; then 41 if [ ! -f $DST/html-tags.conf ]; then
34 cp html-tags.conf $DST 42 cp html-tags.conf $DST
35 fi 43 fi
36 if [ ! -f $DST/tld.conf ]; then 44 if [ ! -f $DST/tld.conf ]; then
37 cp tld.conf $DST 45 cp tld.conf $DST
38 fi 46 fi
39 mv -f dnsbl $DST 47 mv -f dnsbl /usr/sbin/dnsbl
40 cp dnsbl.rc /etc/rc.d/init.d/dnsbl 48 cp dnsbl.rc /etc/rc.d/init.d/dnsbl
41 chmod 755 /etc/rc.d/init.d/dnsbl 49 chmod 755 /etc/rc.d/init.d/dnsbl
42 /sbin/chkconfig --add dnsbl 50 /sbin/chkconfig --add dnsbl
43 /sbin/chkconfig --level 2345 dnsbl on 51 /sbin/chkconfig --level 2345 dnsbl on
44 /etc/rc.d/init.d/dnsbl start 52 /etc/rc.d/init.d/dnsbl start