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