diff --git a/rootfs/etc/cont-init.d/50-get-openskydb b/rootfs/etc/cont-init.d/50-get-openskydb index c146134..d6702f1 100644 --- a/rootfs/etc/cont-init.d/50-get-openskydb +++ b/rootfs/etc/cont-init.d/50-get-openskydb @@ -6,12 +6,15 @@ APPNAME="$(hostname)/get-openskydb" # Copyright 2020-2022 Ramon F. Kolb - licensed under the terms and conditions # of GPLv3. The terms and conditions of this license are included with the Github # distribution of this package, and are also available here: -# https://github.com/kx1t/planefence4docker/ +# https://github.com/kx1t/docker-planefence/ # # This package may incorporate other software and license terms. # ----------------------------------------------------------------------------------- # +# Cleanup all but the newest OpenSkyDB file +find /usr/share/planefence/html/ -type f -name "OpenSky*.csv" -printf '%T@ %p\n'| sort -g | head -n -1 | cut -d ' ' -f 2 | xargs rm -f + echo "[$(date)][$APPNAME] OpenSky DB checking has been temporarily disabled." exit 0