mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Forcing utf8 for map database.
This commit is contained in:
parent
b456786450
commit
b49cedd62a
5 changed files with 5 additions and 5 deletions
|
|
@ -38,7 +38,7 @@ chmod 0440 /etc/sudoers.d/90-wrolpi
|
|||
visudo -c -f /etc/sudoers.d/90-wrolpi
|
||||
|
||||
# Create postgres cluster for map.
|
||||
pg_createcluster 15 map --port=5433
|
||||
pg_createcluster 15 map --port=5433 -e utf8
|
||||
|
||||
git clone https://github.com/lrnselfreliance/openstreetmap-carto.git /opt/openstreetmap-carto
|
||||
git config --global --add safe.directory /opt/openstreetmap-carto
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ set -e
|
|||
set -x
|
||||
|
||||
# Create postgres cluster for map.
|
||||
pg_createcluster 15 map --port=5433
|
||||
pg_createcluster 15 map --port=5433 -e utf8
|
||||
|
||||
# Create mapnik config.
|
||||
git clone https://github.com/lrnselfreliance/openstreetmap-carto.git /opt/openstreetmap-carto
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ set -x
|
|||
systemctl stop renderd
|
||||
|
||||
# Create map database if it does not exist.
|
||||
pg_createcluster 15 map --port=5433 --start
|
||||
pg_createcluster 15 map --port=5433 --start -e utf8
|
||||
|
||||
# Create gis (map) database.
|
||||
sudo -iu postgres psql -c '\l' --port=5433 | grep gis || (
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ cleanup
|
|||
systemctl stop renderd
|
||||
|
||||
# Create new cluster for the map.
|
||||
pg_createcluster 15 map --port=5433 --start
|
||||
pg_createcluster 15 map --port=5433 --start -e utf8
|
||||
# Disable JIT as recommended by mod_tile
|
||||
sed -i 's/#jit =.*/jit = off/' /etc/postgresql/15/map/postgresql.conf
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
0.15.2-beta
|
||||
0.15.3-beta
|
||||
Loading…
Add table
Add a link
Reference in a new issue