1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#!/bin/sh
set -e
PACKAGE=beanstalkd
DEFAULTSFILE=/etc/default/$PACKAGE
case "$1" in
configure)
# Create beanstalkd system user
getent passwd beanstalkd > /dev/null || \
adduser --quiet --system --home /var/lib/beanstalkd --no-create-home \
--gecos 'Beanstalk Server' --group beanstalkd
;;
failed-upgrade|abort-upgrade|abort-remove|abort-deconfigure|in-favour|removing)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2;
exit 1;
;;
esac
chown beanstalkd:beanstalkd /var/lib/beanstalkd/
#DEBHELPER#
exit 0
|