From a91175fdd8a5862d8e1afcad6888a636542bbda6 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Fri, 26 Feb 2021 20:13:02 +0100 Subject: htdocs: Add script to auto-refresh streets etc. --- htdocs/geojson/update.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 htdocs/geojson/update.php (limited to 'htdocs/geojson/update.php') diff --git a/htdocs/geojson/update.php b/htdocs/geojson/update.php new file mode 100644 index 0000000..06e2a13 --- /dev/null +++ b/htdocs/geojson/update.php @@ -0,0 +1,16 @@ + $ntime) { + file_put_contents($fn, $ctime); + echo "Downloading... "; + flush(); + system("cd /srv/http/maps.linux-forks.de/geojson/; ./update_all.sh"); + } else { + echo "Next update in " . intval(($ntime - $ctime) / 60) . " minutes."; + } +?> -- cgit v1.2.3