r23675 - /scripts/KGB/debian/postinst
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Mon Jul 28 19:06:46 UTC 2008
Author: dmn
Date: Mon Jul 28 19:06:44 2008
New Revision: 23675
URL: http://svn.debian.org/wsvn/?sc=1&rev=23675
Log:
remove unnecessary dances around adduser; add --quiet
Modified:
scripts/KGB/debian/postinst
Modified: scripts/KGB/debian/postinst
URL: http://svn.debian.org/wsvn/scripts/KGB/debian/postinst?rev=23675&op=diff
==============================================================================
--- scripts/KGB/debian/postinst (original)
+++ scripts/KGB/debian/postinst Mon Jul 28 19:06:44 2008
@@ -4,19 +4,8 @@
set -u
if [ "$1" = "configure" ]; then
- set +e
- getent passwd Debian-kgb > /dev/null
- GETENT=$?
- set -e
-
- # not found?
- if [ $GETENT -eq 2 ]; then
- adduser --system --group --home /dev/null --no-create-home \
- --disabled-login --gecos "KGB bot" --force-badname Debian-kgb
- elif [ $GETENT -ne 0 ]; then
- echo "getent returned error code $GETENT. aborting" >&2
- exit 1
- fi
+ adduser --system --quiet --group --home /dev/null --no-create-home \
+ --disabled-login --gecos "KGB bot" --force-badname Debian-kgb
if ! dpkg-statoverride --list /etc/kgb/kgb.conf > /dev/null; then
dpkg-statoverride --update --add root Debian-kgb 0640 /etc/kgb/kgb.conf
More information about the Pkg-perl-cvs-commits
mailing list