From cc6d20dac628c2e1f59b156ec374620efadc109c Mon Sep 17 00:00:00 2001 From: Roland Date: Mon, 9 Oct 2023 12:14:38 -0600 Subject: [PATCH] repair.sh will initialize map database if it does not exist. --- repair.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repair.sh b/repair.sh index 1e13d0bb..39c0a3eb 100755 --- a/repair.sh +++ b/repair.sh @@ -103,6 +103,9 @@ cp /opt/wrolpi/etc/raspberrypios/mod_tile.conf /etc/apache2/conf-available/mod_t carto -v +# Initialize the map if it has not been initialized. +sudo -u postgres psql -c '\l' | grep gis || yes | /opt/wrolpi/scripts/initialize_map_db.sh + cp /opt/wrolpi/etc/raspberrypios/renderd.conf /etc/renderd.conf # Configure Apache2 to listen on 8084. cp /opt/wrolpi/etc/raspberrypios/ports.conf /etc/apache2/ports.conf