summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert@lshift.net>2009-01-09 01:28:24 +0100
committerHubert Plociniczak <hubert@lshift.net>2009-01-09 01:28:24 +0100
commit2432ffd913eca043ef4df5d894f5d7e03d3410e1 (patch)
tree5275d4d2351d87aa54519f57b1d356efccf9fd97
parentf84c74f3b1f59b14513b6aaead2c7609dbcb97fc (diff)
downloadrabbitmq-server-git-2432ffd913eca043ef4df5d894f5d7e03d3410e1.tar.gz
Use --gecos option in adduser to add user's comments field,
instead of running usermod.
-rw-r--r--packaging/debs/Debian/debian/postinst4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/debs/Debian/debian/postinst b/packaging/debs/Debian/debian/postinst
index 495b8331f0..93d1c09653 100644
--- a/packaging/debs/Debian/debian/postinst
+++ b/packaging/debs/Debian/debian/postinst
@@ -25,8 +25,8 @@ fi
# create rabbitmq user
if ! getent passwd rabbitmq >/dev/null; then
- adduser --system --ingroup rabbitmq --home /var/lib/rabbitmq --no-create-home rabbitmq
- usermod -c "RabbitMQ messaging server" rabbitmq
+ adduser --system --ingroup rabbitmq --home /var/lib/rabbitmq \
+ --no-create-home rabbitmq --gecos "RabbitMQ messaging server"
fi
chown -R rabbitmq:rabbitmq /var/lib/rabbitmq