diff --git a/debian/postinst b/debian/postinst index e76a74f..fdb99a2 100755 --- a/debian/postinst +++ b/debian/postinst @@ -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