Skip to content

Commit

Permalink
postinst script fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Gustomyasov committed Sep 27, 2013
1 parent 900cf81 commit 424fec3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ set -e

if [ "$1" = configure ]; then
# Automatically added by dh_installinit
if [ -x "/etc/init.d/statsd" ]; then
update-rc.d statsd defaults >/dev/null
invoke-rc.d statsd start || exit $?
fi

if ! getent passwd _statsd > /dev/null; then
adduser --system --quiet --home /nonexistent --no-create-home \
--shell /bin/false --force-badname --group --gecos "StatsD User" _statsd
fi

if [ -x "/etc/init.d/statsd" ]; then
update-rc.d statsd defaults >/dev/null
invoke-rc.d statsd start || exit $?
fi

if ! dpkg-statoverride --list /var/run/statsd >/dev/null 2>&1; then
dpkg-statoverride --update --add _statsd _statsd 0755 /var/run/statsd
Expand Down

0 comments on commit 424fec3

Please sign in to comment.