From b775bd0b32846e0fed9aac1610ba1f43d6b9cc9e Mon Sep 17 00:00:00 2001 From: Roland Date: Mon, 9 Oct 2023 22:09:01 -0600 Subject: [PATCH] We always need to generate the mapnik file. --- .../config/hooks/normal/9999-wrolpi.hook.chroot | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/debian-live-config/config/hooks/normal/9999-wrolpi.hook.chroot b/debian-live-config/config/hooks/normal/9999-wrolpi.hook.chroot index 34e0043f..62af9e7a 100644 --- a/debian-live-config/config/hooks/normal/9999-wrolpi.hook.chroot +++ b/debian-live-config/config/hooks/normal/9999-wrolpi.hook.chroot @@ -39,9 +39,7 @@ chmod 0440 /etc/sudoers.d/90-wrolpi visudo -c -f /etc/sudoers.d/90-wrolpi git clone https://github.com/lrnselfreliance/openstreetmap-carto.git /opt/openstreetmap-carto -if [[ ! -f /opt/openstreetmap-carto/mapnik.xml || ! -s /opt/openstreetmap-carto/mapnik.xml ]]; then - (cd /opt/openstreetmap-carto && carto project.mml >/opt/openstreetmap-carto/mapnik.xml) -fi +(cd /opt/openstreetmap-carto && carto project.mml >/opt/openstreetmap-carto/mapnik.xml) # Change default postgresql port to 5432. sed -i 's/port = 5433/port = 5432/' /etc/postgresql/15/main/postgresql.conf