mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 23:16:17 -05: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
|
||||
#!/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