From 4348e12506c2a6a0d4d386abe1c0dcd2032347c6 Mon Sep 17 00:00:00 2001 From: jp Date: Mon, 9 Oct 2023 15:31:57 +0800 Subject: [PATCH] fix path in setup.sh --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 356202c..60df779 100755 --- a/setup.sh +++ b/setup.sh @@ -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 \ No newline at end of file