diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2006-10-04 08:10:03 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2006-10-04 08:10:03 +0000 |
commit | af5ecd8d9cb7231756fba13418766e45816a0b9c (patch) | |
tree | 868f1babf555033181dc0fafce5e9376f64e0e1b | |
parent | c7f60732f599c0108ff1f595fa8d397a2faa4f24 (diff) | |
download | sitesummary-af5ecd8d9cb7231756fba13418766e45816a0b9c.tar.gz sitesummary-af5ecd8d9cb7231756fba13418766e45816a0b9c.tar.bz2 sitesummary-af5ecd8d9cb7231756fba13418766e45816a0b9c.tar.xz |
* Switch the client from cron.d to cron.daily.
-rw-r--r-- | debian/changelog | 1 | ||||
-rw-r--r-- | debian/sitesummary-client.cron.d | 2 | ||||
-rw-r--r-- | debian/sitesummary-client.cron.daily | 3 | ||||
-rw-r--r-- | debian/sitesummary-client.postinst | 16 |
4 files changed, 20 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index 292cf97..9b1ba83 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,6 +9,7 @@ sitesummary (0.0.12) unstable; urgency=low /var/lib/sitesummary/tmpstorage and /var/lib/sitesummary/entries are owned by user www-data. This give the cgi-script write access to the storage area. + * Switch the client from cron.d to cron.daily. -- Petter Reinholdtsen <pere@debian.org> Wed, 4 Oct 2006 09:43:02 +0200 diff --git a/debian/sitesummary-client.cron.d b/debian/sitesummary-client.cron.d deleted file mode 100644 index 9d8d7a8..0000000 --- a/debian/sitesummary-client.cron.d +++ /dev/null @@ -1,2 +0,0 @@ -# Run once a day to report the wherabouts of the machine -20 5 * * * root [ -x /usr/sbin/sitesummary-client ] && nice /usr/sbin/sitesummary-client diff --git a/debian/sitesummary-client.cron.daily b/debian/sitesummary-client.cron.daily new file mode 100644 index 0000000..9d9f0ae --- /dev/null +++ b/debian/sitesummary-client.cron.daily @@ -0,0 +1,3 @@ +#!/bin/sh +# Run once a day to report the whereabouts of the machine +[ -x /usr/sbin/sitesummary-client ] && nice /usr/sbin/sitesummary-client 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# |