#!/bin/sh set -e case "${1}" in configure) if ! getent passwd ntpd > /dev/null 2>&1 then adduser --quiet --system --group --no-create-home --home /var/run/openntpd ntpd fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`${1}'" >&2 exit 1 ;; esac # Automatically added by dh_installinit if [ -x "/etc/init.d/openntpd" ]; then update-rc.d openntpd defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d openntpd start || exit $? else /etc/init.d/openntpd start || exit $? fi fi # End automatically added section exit 0