Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
Fix to bootstrap script
Browse files Browse the repository at this point in the history
  • Loading branch information
emi420 committed Sep 10, 2023
1 parent b6e38b6 commit 9d1cb9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
# -----

localfiles='false'
use_docker='false'

while getopts r:c:h::u:p:d:l:k flag
do
Expand Down Expand Up @@ -87,7 +88,7 @@ then
fi

echo "Cleaning database ..."
PGPASSWORD=$PASS psql --host $HOST --user $USER --port $PORT $DB -c 'DROP TABLE IF EXISTS raw_poly; DROP TABLE IF EXISTS raw_node; DROP TABLE IF EXISTS way_refs; DROP TABLE IF EXISTS validation; DROP TABLE IF EXISTS changesets;'
PGPASSWORD=$PASS psql --host $HOST --user $USER --port $PORT $DB -c 'DROP TABLE IF EXISTS ways_poly; DROP TABLE IF EXISTS ways_line; DROP TABLE IF EXISTS nodes; DROP TABLE IF EXISTS way_refs; DROP TABLE IF EXISTS validation; DROP TABLE IF EXISTS changesets;'
PGPASSWORD=$PASS psql --host $HOST --user $USER --port $PORT $DB --file '../setup/underpass.sql'

if [ -z "${localfiles}" ]
Expand Down

0 comments on commit 9d1cb9a

Please sign in to comment.