#!/bin/sh
set -e

# Scheduled checkpoints of system folders: drop jobs written by earlier versions, which could run
# a program other than the installed /usr/bin/file-rewind as root (see scripts/helper). A failure
# fails the configuration, so dpkg reports it and the clean-up runs again on the next attempt.
if [ "$1" = "configure" ]; then
    /usr/lib/file-rewind/helper clean-schedules
fi

#DEBHELPER#

exit 0
