optimized events
This commit is contained in:
@@ -71,4 +71,56 @@ if wm_route_data_ready; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
printf 'Routingdaten- und Markerprüfungen: OK\n'
|
||||
mkdir -p "$WATERMAPS_DATA_DIR/geofabrik"
|
||||
printf '%s germany-latest.osm.pbf\n' \
|
||||
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' \
|
||||
>"$WATERMAPS_DATA_DIR/geofabrik/germany-latest.osm.pbf.md5"
|
||||
printf '%s netherlands-latest.osm.pbf\n' \
|
||||
'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' \
|
||||
>"$WATERMAPS_DATA_DIR/geofabrik/netherlands-latest.osm.pbf.md5"
|
||||
|
||||
cat >"$(wm_marine_marker)" <<'MARKER'
|
||||
format_version=1
|
||||
generated_at=2026-07-28T00:00:00Z
|
||||
source=germany+netherlands
|
||||
germany_md5=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
netherlands_md5=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
||||
total_osm_features=100
|
||||
harbour_count=10
|
||||
lock_count=5
|
||||
bridge_count=20
|
||||
MARKER
|
||||
|
||||
wm_postgres_query() {
|
||||
printf '100|10|5|20\n'
|
||||
}
|
||||
wm_marine_features_ready
|
||||
|
||||
wm_postgres_query() {
|
||||
printf '100|10|0|20\n'
|
||||
}
|
||||
if wm_marine_features_ready; then
|
||||
printf 'Marine-Feature-Marker wurde trotz fehlender Schleusen akzeptiert.\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
wm_postgres_query() {
|
||||
printf '99|10|5|20\n'
|
||||
}
|
||||
if wm_marine_features_ready; then
|
||||
printf 'Marine-Feature-Marker wurde trotz abweichendem Datenbankbestand akzeptiert.\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if grep -Eq 'DATABASE_URL:[[:space:]]*""' \
|
||||
"$ROOT_DIR/docker-compose.yml" \
|
||||
"$ROOT_DIR/deploy/compose.production.yml"; then
|
||||
printf 'Compose trennt die App weiterhin explizit von PostGIS.\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
grep -Fq 'condition: service_healthy' "$ROOT_DIR/deploy/compose.production.yml"
|
||||
grep -Fq '/ready' "$ROOT_DIR/deploy/compose.production.yml"
|
||||
grep -Fq 'source: ${WATERMAPS_DATA_DIR:-/srv/watermaps-data}/postgres' \
|
||||
"$ROOT_DIR/deploy/compose.production.yml"
|
||||
|
||||
printf 'Routingdaten-, Marine-Feature- und Compose-Prüfungen: OK\n'
|
||||
|
||||
Reference in New Issue
Block a user