File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff 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
2524VERSION=14
2625BASE_URL=" https://repo1.maven.org/maven2/io/trino/gateway/gateway-ha"
27- POSTGRES_SQL=" gateway-ha-persistence-postgres.sql"
2826JAR_FILE=" gateway-ha-$VERSION -jar-with-dependencies.jar"
2927GATEWAY_JAR=" gateway-ha.jar"
3028CONFIG_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
You can’t perform that action at this time.
0 commit comments