Remove the last vestiges of the update-aircraft-db cronjob.
This commit is contained in:
parent
ad3d0e4d74
commit
b2aaa23984
6 changed files with 2 additions and 128 deletions
2
debian/control
vendored
2
debian/control
vendored
|
|
@ -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
|
||||
|
|
|
|||
12
debian/cron-template
vendored
12
debian/cron-template
vendored
|
|
@ -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
|
||||
@MIN@ 5 * * * @USER@ test -x /usr/share/dump1090-mutability/update-aircraft-database.sh && /usr/share/dump1090-mutability/update-aircraft-database.sh --log-to-file
|
||||
1
debian/dump1090-mutability.init
vendored
1
debian/dump1090-mutability.init
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
4
debian/dump1090-mutability.postinst
vendored
4
debian/dump1090-mutability.postinst
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
debian/dump1090-mutability.postrm
vendored
2
debian/dump1090-mutability.postrm
vendored
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue