[Lunar-commits] CVS: moonbase/devel/dbus BUILD, 1.5, 1.6 POST_REMOVE, 1.1, NONE

Auke Kok sofar at lunar-linux.org
Mon Mar 28 12:11:47 UTC 2005


Update of /var/cvs/lunar/moonbase/devel/dbus
In directory espresso.foo-projects.org:/tmp/cvs-serv27869

Modified Files:
	BUILD 
Removed Files:
	POST_REMOVE 
Log Message:
Again, stop using adduser!


Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/devel/dbus/BUILD,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- BUILD	16 Mar 2005 15:33:30 -0000	1.5
+++ BUILD	28 Mar 2005 12:11:45 -0000	1.6
@@ -1,8 +1,5 @@
 (
   
-  DBUS_USERNAME=messagebus
-  DBUS_GROUPNAME=messagebus
-  
   OPTS="$OPTS --enable-glib --enable-x --enable-checks --enable-verbose-mode \
         --with-xml=libxml --with-system-pid-file=/var/run/messagebus.pid    \
         --with-system-socket=/var/lib/dbus/system_bus_socket                 \
@@ -12,11 +9,8 @@
 
   # The following used to be in POST_INSTALL but the service wasn't starting
   # on FIRST install due to the lack of existing /var/lib/dbus
-  message "${MESSAGE_COLOR}Adding new group: ${DBUS_GROUPNAME}${DEFAULT_COLOR}"
-  groupadd $DBUS_GROUPNAME                   2>/dev/null
-  message "${MESSAGE_COLOR}Adding new user: ${DBUS_USERNAME}${DEFAULT_COLOR}"
-  useradd  $DBUS_USERNAME -g $DBUS_GROUPNAME -d /dev/null -s /bin/false 2>/dev/null
-  mkdir -p /var/lib/dbus
-  chown -R ${DBUS_GROUPNAME}:$DBUS_GROUPNAME /var/lib/dbus
+  add_priv_user messagebus:messagebus -d /dev/null -s /bin/false &&
+  mkdir -p /var/lib/dbus  &&
+  chown -R messagebus:messagebus /var/lib/dbus
 
 ) > $C_FIFO 2>&1

--- POST_REMOVE DELETED ---



More information about the Lunar-commits mailing list