[kernel] r8877 - dists/trunk/redhat-cluster/openais/debian
Bastian Blank
waldi at alioth.debian.org
Sun Jun 3 13:29:55 UTC 2007
Author: waldi
Date: Sun Jun 3 13:29:55 2007
New Revision: 8877
Log:
* debian/openais.postinst
- Only create user on initial installation.
- Create /var/{lib,log}/openais.
* debian/openais.postrm: Use deluser.
* debian/openais.dirs: Remove.
Removed:
dists/trunk/redhat-cluster/openais/debian/openais.dirs
Modified:
dists/trunk/redhat-cluster/openais/debian/openais.postinst
dists/trunk/redhat-cluster/openais/debian/openais.postrm
Modified: dists/trunk/redhat-cluster/openais/debian/openais.postinst
==============================================================================
--- dists/trunk/redhat-cluster/openais/debian/openais.postinst (original)
+++ dists/trunk/redhat-cluster/openais/debian/openais.postinst Sun Jun 3 13:29:55 2007
@@ -2,25 +2,24 @@
set -e
-. /usr/share/debconf/confmodule
-
-db_version 2.0
-
case "$1" in
configure)
-
- if ! getent passwd Debian-ais > /dev/null ; then
- echo 'Adding system-user for openais' 1>&2
- adduser --system --group --home /var/lib/openais \
- --no-create-home --disabled-login \
- --force-badname Debian-ais > /dev/null
+ if [ -z "$2" ]; then
+ if ! getent passwd Debian-ais > /dev/null ; then
+ echo 'Adding system-user for openais'
+ adduser --system --group --home /var/lib/openais \
+ --no-create-home --disabled-login \
+ --force-badname Debian-ais > /dev/null
+ fi
+
+ mkdir /var/lib/openais /var/log/openais
+ chmod 700 /var/lib/openais
+ chmod 2750 /var/log/openais
+ chown Debian-ais:adm /var/lib/openais /var/log/openais
fi
-
- chown Debian-ais:Debian-ais /var/lib/openais
- chown Debian-ais:Debian-ais /var/log/openais
-
;;
esac
+#DEBHELPER#
-# vim:tw=72
+exit 0
Modified: dists/trunk/redhat-cluster/openais/debian/openais.postrm
==============================================================================
--- dists/trunk/redhat-cluster/openais/debian/openais.postrm (original)
+++ dists/trunk/redhat-cluster/openais/debian/openais.postrm Sun Jun 3 13:29:55 2007
@@ -4,9 +4,10 @@
case "$1" in
purge)
- userdel Debian-ais >/dev/null 2>&1 || true
- groupdel Debian-ais >/dev/null 2>&1 || true
+ deluser Debian-ais >/dev/null 2>&1 || :
;;
esac
+#DEBHELPER#
+exit 0
More information about the Kernel-svn-changes
mailing list