repair.sh will initialize map database if it does not exist.

This commit is contained in:
Roland 2023-10-09 12:14:38 -06:00
parent 6252022932
commit cc6d20dac6
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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