changeset 116:0094678a16d0 stable-5-12

update all systems from tarball, make chkconfig creates dnsbl user if needed
author carl
date Sun, 08 Jan 2006 10:27:24 -0800
parents 07e5d4721213
children aa07452e641b
files ChangeLog Makefile.am
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jan 08 09:07:00 2006 -0800
+++ b/ChangeLog	Sun Jan 08 10:27:24 2006 -0800
@@ -5,6 +5,8 @@
     servers.  A current example is life-all.com which needs to retry in
     tcp mode to fetch the 1444 byte response.
 
+    'make chkconfig' now creates the dnsbl user if it does not exist.
+
 5.11 2005-12-20
     switch to autoconf/automake/docbook
 
--- a/Makefile.am	Sun Jan 08 09:07:00 2006 -0800
+++ b/Makefile.am	Sun Jan 08 10:27:24 2006 -0800
@@ -13,6 +13,7 @@
 	       sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>dnsbl
 
 chkconfig: dnsbl
+	   /usr/bin/getent passwd dnsbl || /usr/sbin/useradd -r -d /etc/dnsbl -M -c "dnsbl pseudo-user" -s /sbin/nologin dnsbl
 	   mv -f $(sysconfdir)/dnsbl/dnsbl /etc/rc.d/init.d
 	   /sbin/chkconfig --del dnsbl
 	   /sbin/chkconfig --add dnsbl