From 8fb31f36e803bd8a4b8b7777d8d9e35e5fff1758 Mon Sep 17 00:00:00 2001 From: "Begerad, Stefan" Date: Tue, 2 May 2023 13:02:30 +0200 Subject: [PATCH] Initial commit next --- .gitignore | 4 + crontab.txt | 4 + dload-geofabrik-osm.sh | 33 +++++++++ import-osm-into-db.sh | 34 +++++++++ style_osm_20220601.style | 155 +++++++++++++++++++++++++++++++++++++++ update-db.sh | 15 ++++ 6 files changed, 245 insertions(+) create mode 100644 .gitignore create mode 100644 crontab.txt create mode 100644 dload-geofabrik-osm.sh create mode 100644 import-osm-into-db.sh create mode 100644 style_osm_20220601.style create mode 100644 update-db.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6268355 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.pbf +osmconvert-* +wget-log-* +*~ diff --git a/crontab.txt b/crontab.txt new file mode 100644 index 0000000..80894a7 --- /dev/null +++ b/crontab.txt @@ -0,0 +1,4 @@ +# m h dom mon dow command +25 0 * * 7 cd /home/pacs/sib00/users/osm/bin && sh dload-geofabrik-osm.sh niedersachsen +45 0 * * 7 cd /home/pacs/sib00/users/osm/bin && sh import-osm-into-db.sh sib00_osm +45 3 * * 7 cd /home/pacs/sib00/users/osm/bin && sh update-db.sh sib00_osm diff --git a/dload-geofabrik-osm.sh b/dload-geofabrik-osm.sh new file mode 100644 index 0000000..cb40341 --- /dev/null +++ b/dload-geofabrik-osm.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# +echo "Started..." +#Started... +# +if [ $# -eq 0 ] ; then + echo 'Call ./