#!/bin/sh set -e installinit_error() { exit $? } # Automatically added by dh_installinit/14.3 if [ "$1" = "remove" ] && [ -x "/etc/init.d/ntpsec" ] ; then chmod -x "/etc/init.d/ntpsec" >/dev/null || true fi if [ -z "$DPKG_ROOT" ] && [ "$1" = "purge" ] ; then update-rc.d ntpsec remove >/dev/null fi # End automatically added section # Automatically added by dh_installsystemd/14.3 if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_installsystemd/14.3 if [ "$1" = "purge" ]; then deb-systemd-helper purge 'ntpsec-rotate-stats.timer' 'ntpsec-systemd-netif.path' 'ntpsec.service' >/dev/null || true fi # End automatically added section # Automatically added by dh_apparmor/4.1.8-1 if [ "$1" = "purge" ] && ! [ -e "/etc/apparmor.d/usr.sbin.ntpd" ] ; then rm -f "/etc/apparmor.d/disable/usr.sbin.ntpd" || true rm -f "/etc/apparmor.d/force-complain/usr.sbin.ntpd" || true rm -f "/etc/apparmor.d/local/usr.sbin.ntpd" || true rm -f /var/cache/apparmor/*/"usr.sbin.ntpd" || true rmdir /etc/apparmor.d/disable 2>/dev/null || true rmdir /etc/apparmor.d/local 2>/dev/null || true rmdir /etc/apparmor.d 2>/dev/null || true fi # End automatically added section if [ "$1" = "purge" ]; then rm -rf /var/lib/ntpsec/ntp.drift /var/log/ntpsec rmdir /var/lib/ntpsec 2> /dev/null || true fi