[pkg-kolab] r82 - trunk/kolabd/debian
Noel Koethe
noel at costa.debian.org
Wed Jan 4 14:22:32 UTC 2006
Author: noel
Date: 2006-01-04 14:22:31 +0000 (Wed, 04 Jan 2006)
New Revision: 82
Added:
trunk/kolabd/debian/dirs
trunk/kolabd/debian/postinst
Log:
create the 3 kolab users in postinst with /var/lib/kolab as home
Added: trunk/kolabd/debian/dirs
===================================================================
--- trunk/kolabd/debian/dirs 2006-01-04 14:21:03 UTC (rev 81)
+++ trunk/kolabd/debian/dirs 2006-01-04 14:22:31 UTC (rev 82)
@@ -0,0 +1 @@
+var/lib/kolab
Added: trunk/kolabd/debian/postinst
===================================================================
--- trunk/kolabd/debian/postinst 2006-01-04 14:21:03 UTC (rev 81)
+++ trunk/kolabd/debian/postinst 2006-01-04 14:22:31 UTC (rev 82)
@@ -0,0 +1,35 @@
+#! /bin/sh
+
+set -e
+
+add_kolab_system_users() {
+ if ! getent passwd kolab >/dev/null; then
+ adduser --group --system --no-create-home \
+ --home /var/lib/kolab kolab;
+ fi
+ if ! getent passwd kolab-r >/dev/null; then
+ adduser --group --system --no-create-home \
+ --home /var/lib/kolab kolab-r;
+ fi
+ if ! getent passwd kolab-n >/dev/null; then
+ adduser --group --system --no-create-home \
+ --home /var/lib/kolab kolab-n;
+ fi
+}
+
+case "$1" in
+ configure)
+ add_kolab_system_user
+ fixperms
+ ;;
+ abort-upgrade|abort-deconfigure|abort-remove)
+ :
+ ;;
+ *)
+ echo "Called with unknown argument $1, bailing out."
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
More information about the pkg-kolab-devel
mailing list