Creating map db during debian build.

This commit is contained in:
Roland 2025-01-05 12:04:28 -07:00
parent 26f4d2f55d
commit 45529a4436
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
2 changed files with 5 additions and 1 deletions

View file

@ -2,7 +2,7 @@
# https://live-team.pages.debian.net/live-manual/html/live-manual/index.en.html
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
BUILD_DIR=/tmp/wrolpi-build
BUILD_DIR=/tmp/wrolpi-build-debian
VERSION=$(cat "${SCRIPT_DIR}/../wrolpi/version.txt")

View file

@ -37,8 +37,12 @@ chmod 0440 /etc/sudoers.d/90-wrolpi
# Verify this new file is valid.
visudo -c -f /etc/sudoers.d/90-wrolpi
# Create postgres cluster for map.
pg_createcluster 15 map --port=5433
git clone https://github.com/lrnselfreliance/openstreetmap-carto.git /opt/openstreetmap-carto
git config --global --add safe.directory /opt/openstreetmap-carto
sed -i '/dbname: "gis"/a \ port: 5433' /opt/openstreetmap-carto/project.mml
(cd /opt/openstreetmap-carto && carto project.mml >/opt/openstreetmap-carto/mapnik.xml)
# Change default postgresql port to 5432.