#!/bin/sh
set -e

if [ "$1" = purge ]; then
    rm -f -- /etc/cron.d/file-rewind
    # Leave checkpoint stores in place. Only the scheduler's private records are purged.
    if [ ! -L /var/lib/file-rewind ]; then
        rm -rf -- /var/lib/file-rewind/daily
    fi
fi

#DEBHELPER#
