[hamradio-commits] [dump1090-mutability] 137/172: Remove the last vestiges of the update-aircraft-db cronjob.

Matteo F. Vescovi mfv at moszumanska.debian.org
Sun Jan 28 13:45:53 UTC 2018


This is an automated email from the git hooks/post-receive script.

mfv pushed a commit to branch master
in repository dump1090-mutability.

commit 234b924054cddc22049c4d8c7d5b120b29cacae2
Author: Oliver Jowett <oliver at mutability.co.uk>
Date:   Sun Jul 10 12:21:35 2016 +0100

    Remove the last vestiges of the update-aircraft-db cronjob.
---
 debian/control                      |  2 +-
 debian/cron-template                | 12 ------------
 debian/dump1090-mutability.init     |  1 -
 debian/dump1090-mutability.postinst |  4 +---
 debian/dump1090-mutability.postrm   |  2 --
 5 files changed, 2 insertions(+), 19 deletions(-)

diff --git a/debian/control b/debian/control
index 8c146e4..349c53d 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,7 @@ Vcs-Git: https://github.com/mutability/dump1090.git
 Package: dump1090-mutability
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, adduser
-Recommends: python(>=2.5), cron | cron-daemon, curl, lighttpd
+Recommends: python(>=2.5), lighttpd
 Provides: fatsv-data-source
 Description: ADS-B Ground Station System for RTL-SDR
  Networked Aviation Mode S / ADS-B decoder/translator with RTL-SDR software
diff --git a/debian/cron-template b/debian/cron-template
deleted file mode 100644
index 38b1210..0000000
--- a/debian/cron-template
+++ /dev/null
@@ -1,12 +0,0 @@
-## TEMPLATE FILE - This is used to create /etc/cron.d/dump1090-mutability ##
-## The first three lines will be discarded                                ##
-
-# Checks for updates to the VRS aircraft database once a day at around 5am;
-# when an update is available, downloads it and regenerates the JSON data
-# used by the webmap.
-
-# NB: the minute value below is randomly generated on install, to avoid 
-# all installs hitting the server at the same time.
-
-# m h dom mon dow user command
- at MIN@ 5 * * *  @USER@  test -x /usr/share/dump1090-mutability/update-aircraft-database.sh && /usr/share/dump1090-mutability/update-aircraft-database.sh --log-to-file
diff --git a/debian/dump1090-mutability.init b/debian/dump1090-mutability.init
index 1bb4adb..4ccbc36 100644
--- a/debian/dump1090-mutability.init
+++ b/debian/dump1090-mutability.init
@@ -126,7 +126,6 @@ do_start()
         fi
 
         # create logfile with the appropriate permissions if not already there
-        # (the cronjob running as DUMP1090_USER wants to append to it)
         touch $LOGFILE
         chown "$DUMP1090_USER":root $LOGFILE
 
diff --git a/debian/dump1090-mutability.postinst b/debian/dump1090-mutability.postinst
index 5038c52..30151d2 100644
--- a/debian/dump1090-mutability.postinst
+++ b/debian/dump1090-mutability.postinst
@@ -21,8 +21,6 @@ NAME=dump1090-mutability
 CONFIGFILE=/etc/default/$NAME
 SRCCONFIGFILE=$CONFIGFILE
 TEMPLATECONFIG=/usr/share/$NAME/config-template
-CRONFILE=/etc/cron.d/$NAME
-TEMPLATECRON=/usr/share/$NAME/cron-template
 SEDSCRIPT=$CONFIGFILE.sed.tmp
 
 subvar_raw() {
@@ -111,7 +109,7 @@ case "$1" in
             adduser --system --home /usr/share/$NAME --no-create-home --quiet "$RUNAS"
         fi
 
-        # create log if missing; change ownership if needed so the cronjob works
+        # create log if missing; change ownership if needed
         db_get $NAME/log-file
         touch $RET
         chown $RUNAS $RET
diff --git a/debian/dump1090-mutability.postrm b/debian/dump1090-mutability.postrm
index 6251a8f..625de17 100644
--- a/debian/dump1090-mutability.postrm
+++ b/debian/dump1090-mutability.postrm
@@ -22,8 +22,6 @@ set -e
 case "$1" in
     purge)
         rm -f /etc/default/dump1090-mutability
-        rm -f /etc/cron.d/dump1090-mutability
-        rm -rf /var/cache/dump1090-mutability
         ;;
 
     remove)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090-mutability.git



More information about the pkg-hamradio-commits mailing list