4
# The cron job was renamed.
5
if [ -e /etc/cron.daily/news ] && dpkg --compare-versions 0.9-7 gt "$2"; then
6
mv -f /etc/cron.daily/news /etc/cron.daily/sysnews.dpkg-old || true
7
rm -f /etc/cron.daily/news* 2>/dev/null || true
10
# The postinst needs to know if the WELCOME file in the old directory was
11
# deleted, so it can delete the WELCOME file in the new location. It can't
12
# just check to see if it's there, because dpkg will delete it, as an
13
# unchanged removed conffile, before the ponstinst runs. Thus this gross
14
# hack. Note that I use a directory because that can be created safely w/o
15
# sysmlink attacks. Adding a file to /var/news/ makes dpkg emit puzzling
16
# messages, which is why I don't do that.
17
if [ -d /var/news -a ! -e /var/news/WELCOME ] && dpkg --compare-versions 0.9-8 gt "$2"; then
18
mkdir /var/tmp/.sysnews_WELCOME_deleted