diff options
Diffstat (limited to 'debian/sitesummary-client.postinst')
-rw-r--r-- | debian/sitesummary-client.postinst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/sitesummary-client.postinst b/debian/sitesummary-client.postinst index 28a05bf..4a21703 100644 --- a/debian/sitesummary-client.postinst +++ b/debian/sitesummary-client.postinst @@ -4,6 +4,15 @@ set -e . /usr/share/debconf/confmodule +case "$1" in + configure) + PREV_VER=$2 + ;; + abort-upgrade|abort-remove|abort-deconfigure) + exit 0 + ;; +esac + # Read the package default, need to match the code in sitesummary-client [ -f /usr/share/sitesummary/sitesummary-client.conf ] && \ . /usr/share/sitesummary/sitesummary-client.conf @@ -72,4 +81,11 @@ fi db_stop +# Switched from cron.d to cron.daily script in version 0.0.12 +if dpkg --compare-versions "$PREV_VER" lt "0.0.12" && \ + [ -f /etc/cron.d/sitesummary-client ] +then + rm -f /etc/cron.d/sitesummary-client +fi + #DEBHELPER# |