Skip to content

Commit 6906fd2

Browse files
committed
Remove unnecessary db init script from quickstart guide
1 parent 59c9621 commit 6906fd2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

docs/quickstart.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ It copies the following, necessary files to current directory:
1717

1818
- `gateway-ha.jar` from Maven Central using the version specified in the script
1919
- `config.yaml` from the `docs` folder of the current project folder
20-
- `gateway-ha-persistence-postgres.sql` from the current project folder
2120

2221
```shell
2322
#!/usr/bin/env sh
2423

2524
VERSION=14
2625
BASE_URL="https://repo1.maven.org/maven2/io/trino/gateway/gateway-ha"
27-
POSTGRES_SQL="gateway-ha-persistence-postgres.sql"
2826
JAR_FILE="gateway-ha-$VERSION-jar-with-dependencies.jar"
2927
GATEWAY_JAR="gateway-ha.jar"
3028
CONFIG_YAML="config.yaml"
@@ -38,7 +36,6 @@ copy_files() {
3836
fi
3937

4038
[[ ! -f "$CONFIG_YAML" ]] && cp ../docs/$CONFIG_YAML .
41-
[[ ! -f "$POSTGRES_SQL" ]] && cp ../gateway-ha/src/main/resources/$POSTGRES_SQL .
4239
}
4340

4441
# Start PostgreSQL database if not running
@@ -50,7 +47,6 @@ start_postgres_db() {
5047
--name local-postgres -p 5432:5432 -e POSTGRES_PASSWORD=$PGPASSWORD -d postgres
5148
sleep 5
5249
docker exec local-postgres psql -U postgres -h localhost -c 'CREATE DATABASE gateway'
53-
docker exec local-postgres psql -U postgres -h localhost -d gateway -f /tmp/$POSTGRES_SQL
5450
fi
5551
}
5652

0 commit comments

Comments
 (0)