Skip to content

Commit

Permalink
fix path in setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
wongjingping committed Oct 9, 2023
1 parent d64259c commit 4348e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ for db_name in "$@"; do
PGPASSWORD=$DBPASSWORD psql -U $DBUSER -h $DBHOST -p $DBPORT -c "DROP DATABASE IF EXISTS ${db_name};"
PGPASSWORD=$DBPASSWORD psql -U $DBUSER -h $DBHOST -p $DBPORT -c "CREATE DATABASE ${db_name};"
echo "done dropping and recreating database ${db_name}"
db_path="${db_name}/${db_name}.sql"
db_path="defog_data/${db_name}/${db_name}.sql"
echo "importing ${db_path} into database ${db_name}"
PGPASSWORD=$DBPASSWORD psql -U $DBUSER -h $DBHOST -p $DBPORT -d "${db_name}" -f "${db_path}"
done

0 comments on commit 4348e12

Please sign in to comment.