#!/bin/sh
set -e

if dpkg-statoverride --list /lib/systemd-cron/crontab_setgid > /dev/null ; then
    dpkg-statoverride --remove /lib/systemd-cron/crontab_setgid
fi

# Automatically added by dh_installdeb/13.14.1ubuntu5
dpkg-maintscript-helper rm_conffile /etc/cron.yearly/.placeholder 1.15.19-4 systemd-cron -- "$@"
dpkg-maintscript-helper rm_conffile /etc/cron.weekly/systemd-cron -- "$@"
# End automatically added section
# Automatically added by dh_cruft/0.9.61build1
if [ "$1" = "purge" ]
then
    # we need to glob, so no quotes
    rm -rf /var/lib/systemd/timers/stamp-cron-*.timer
    rm -rf /var/lib/systemd/timers/stamp-systemd-cron-cleaner.timer
fi
# End automatically added section
# Automatically added by dh_installsystemd/13.14.1ubuntu5
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/13.14.1ubuntu5
if [ "$1" = "purge" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ]; then
		deb-systemd-helper purge 'cron.target' >/dev/null || true
	fi
fi
# End automatically added section

