mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 17:36:18 -05:00
Creating map db during debian build.
This commit is contained in:
parent
26f4d2f55d
commit
45529a4436
2 changed files with 5 additions and 1 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue