mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 17:36:18 -05:00
Map initialization script will only ask to reset if the map database exists.
This commit is contained in:
parent
cc6d20dac6
commit
8230174fcd
2 changed files with 4 additions and 2 deletions
|
|
@ -4,7 +4,9 @@
|
|||
|
||||
source /opt/wrolpi/wrolpi/scripts/lib.sh
|
||||
|
||||
yes_or_no "Are you sure you want to initialize the map database? Data from imported maps will be lost." || exit 0
|
||||
sudo -u postgres psql -c '\l' 2>/dev/null | grep gis >/dev/null && (
|
||||
yes_or_no "Are you sure you want to initialize the map database? Data from imported maps will be lost." || exit 0
|
||||
)
|
||||
|
||||
set -x
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue