diff 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
line wrap: on
line diff
--- a/install.bash	Mon Jun 07 21:07:40 2004 -0700
+++ b/install.bash	Mon Jul 05 10:52:02 2004 -0700
@@ -24,9 +24,17 @@
 
 
 #####################
+# ensure the user is created
+/usr/bin/getent passwd dnsbl || useradd -r -d /etc/dnsbl -M -c "dnsbl pseudo-user" -s /sbin/nologin dnsbl
 # install the milter
-DST=/var/dnsbl
+DST=/etc/dnsbl
 mkdir -p $DST
+if [ -f /var/dnsbl/dnsbl.conf ]; then
+    # move the conf files to the new location
+    mv /var/dnsbl/*conf $DST
+    rm /var/dnsbl/dnsbl # remove the old binary
+    rmdir /var/dnsbl
+fi
 if [ ! -f $DST/dnsbl.conf ]; then
     cp dnsbl.conf $DST
 fi
@@ -36,7 +44,7 @@
 if [ ! -f $DST/tld.conf ]; then
     cp tld.conf $DST
 fi
-mv -f dnsbl $DST
+mv -f dnsbl /usr/sbin/dnsbl
 cp dnsbl.rc /etc/rc.d/init.d/dnsbl
 chmod 755 /etc/rc.d/init.d/dnsbl
 /sbin/chkconfig --add dnsbl