postrm is in rsnapshot 1.4.2-1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/bin/sh
set -e
files="/etc/cron.monthly/rsnapshot /etc/cron.daily/rsnapshot \
/etc/cron.hourly/rsnapshot /etc/cron.weekly/rsnapshot \
/etc/default/rsnapshot"
for file_to_remove in $files
do
dpkg-maintscript-helper rm_conffile \
$file_to_remove 1.3.1-6 rsnapshot -- "$@"
done
# purge the log files
if [ "$1" = purge ] ; then
rm -f /var/log/rsnapshot.log*
fi
|