Using /usr/bin/env bash.

This commit is contained in:
Roland 2022-11-04 08:34:15 -06:00
parent 1a2916ef1c
commit a5a3d2ee1b
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
7 changed files with 14 additions and 9 deletions

View file

@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/usr/bin/env bash -ex
MERGED_TMP_FILE=/tmp/wrolpi-merged.osm.pbf

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [ ! -d /opt/openstreetmap-carto ]; then
echo "/opt/openstreetmap-carto does not exist. Run install.sh!"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
echo "Debian 11 install start: $(date '+%Y-%m-%d %H:%M:%S')"
set -x

View file

@ -1,4 +1,4 @@
#! /usr/bin/bash
#! /usr/usr/bin/env bash
# This script installs OpenStreetMap tile server.
# This server uses Apache2, renderd, and mod_tile to render and display map tiles.

View file

@ -1,4 +1,4 @@
#! /usr/bin/bash
#! /usr/bin/env bash
# This script installs OpenStreetMap tile server.
# This server uses Apache2, renderd, and mod_tile to render and display map tiles.

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
echo "Ubuntu 20.04 install start: $(date '+%Y-%m-%d %H:%M:%S')"
set -x

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Use 1/4 of the RAM to import. 1/2 causes crashes on RPi.
RAM_KB=$(grep MemTotal /proc/meminfo | awk '{print $2}')
@ -79,6 +79,11 @@ sudo -u postgres psql -d gis -c "ALTER TABLE spatial_ref_sys OWNER TO wrolpi;"
# Reset "imported" status of any map files.
sudo -u postgres psql -d wrolpi -c "UPDATE map_file SET imported=false"
/opt/wrolpi/scripts/initialize_map.sh
bash /opt/wrolpi/scripts/initialize_map.sh
echo "Map has been reset"
echo "Map has been reset.
Restart renderd with:
# sudo systemctl restart renderd
"