mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 15:06:19 -05:00
Carto location has changed in Debian 11.
This commit is contained in:
parent
8f7d9f208c
commit
fcf98b402b
1 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ apt install -y libapache2-mod-tile renderd tar unzip wget bzip2 apache2 lua5.1 m
|
|||
fonts-noto-cjk fonts-noto-hinted fonts-noto-unhinted ttf-unifont osmium-tool
|
||||
|
||||
/usr/bin/npm install -g carto
|
||||
/usr/local/bin/carto -v
|
||||
/usr/bin/carto -v
|
||||
|
||||
# Create `gis` database for map.
|
||||
sudo -u postgres psql -c '\l' | grep gis || sudo -u postgres createdb -E UTF8 -O wrolpi gis
|
||||
|
|
@ -39,7 +39,7 @@ chown -R wrolpi:wrolpi /opt/openstreetmap-carto
|
|||
sudo -u wrolpi /bin/bash -c '(cd /opt/openstreetmap-carto && git fetch && git checkout master && git reset --hard origin/master && git pull --ff)'
|
||||
cd /opt/openstreetmap-carto
|
||||
if [[ ! -f /opt/openstreetmap-carto/mapnik.xml || ! -s /opt/openstreetmap-carto/mapnik.xml ]]; then
|
||||
/usr/local/bin/carto project.mml >/opt/openstreetmap-carto/mapnik.xml
|
||||
/usr/bin/carto project.mml >/opt/openstreetmap-carto/mapnik.xml
|
||||
fi
|
||||
|
||||
# Reset map. Force it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue