mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Using /usr/bin/env bash.
This commit is contained in:
parent
1a2916ef1c
commit
a5a3d2ee1b
7 changed files with 14 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash -ex
|
||||
#!/usr/bin/env bash -ex
|
||||
|
||||
MERGED_TMP_FILE=/tmp/wrolpi-merged.osm.pbf
|
||||
|
||||
|
|
|
|||
|
|
@ -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!"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
echo "Debian 11 install start: $(date '+%Y-%m-%d %H:%M:%S')"
|
||||
|
||||
set -x
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue