config is in tmpreaper 1.6.13+nmu1build1.
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 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | #!/bin/sh -e
if [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
fi
# If the cron.daily script isn't there, then this is probably a new
# installation; don't show the message in that case.
# If the "installed version" is empty, this is definitely a new installation...
GO4IT=false
if [ ! -s /etc/cron.daily/tmpreaper -o -z "$2" ]; then
db_fset tmpreaper/confignowexists seen true
# This debconf thing was introduced in version 1.5.1.
# Only if the installed version is less should the message be displayed.
elif dpkg --compare-versions "$2" ">>" "1.5.1"; then
db_fset tmpreaper/confignowexists seen true
else
db_input high tmpreaper/confignowexists || true
GO4IT=true
fi
# If there isn't a tmpreaper.conf file, don't bother showing the note.
# Or if the default value for TMPREAPER_TIME is still there,
# also don't show the note.
if [ ! -f /etc/tmpreaper.conf ] ||
[ "`grep '^TMPREAPER_TIME=7d$' /etc/tmpreaper.conf 2>/dev/null`" = "TMPREAPER_TIME=7d" ]; then
db_fset tmpreaper/TMPREAPER_TIME seen true
else
db_input high tmpreaper/TMPREAPER_TIME || true
GO4IT=true
fi
# If upgrading, the user may not choose to replace the conffile,
# so then show a different note than to users newly installing.
if [ -z "$2" ]; then
# newly installing
db_fset tmpreaper/readsecurity_upgrading seen true # they must never see this note
db_input high tmpreaper/readsecurity || true # ... only this one
elif dpkg --compare-versions "$2" "<<" "1.6.1"; then
# upgrading (from older version)
db_fset tmpreaper/readsecurity seen true # they must never see this other note
db_input high tmpreaper/readsecurity_upgrading || true # ... only this one
GO4IT=true
else
# upgrading from newer version where it already was there
:
fi
if $GO4IT; then
db_go
fi
db_stop
exit 0
|