Skip to content

Commit aef9143

Browse files
committed
Use cat EOF to log info at eng of PG script
1 parent d601f15 commit aef9143

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

run_postgres_ssl/run_postgres_ssh.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ openssl req -x509 -in server.req -text -key server.key -out server.crt
1010

1111
chmod 600 server.key
1212

13-
test $(uname -s) = Linux && chown 70 server.key
14-
15-
echo '--------------------------------------------------'
16-
echo 'To Connect, Run:'
17-
echo ''
18-
echo 'psql -p 5433 "sslmode=verify-full host=localhost dbname=postgres user=postgres sslrootcert=server.crt"'
19-
echo ''
20-
echo '--------------------------------------------------'
13+
test $(uname -s) = Linux && sudo chown 70 server.key
14+
15+
cat <<EOF
16+
17+
--------------------------------------------------
18+
To Connect, Run:
19+
20+
psql -p 5433 "sslmode=verify-full host=localhost dbname=postgres user=postgres sslrootcert=server.crt"
21+
22+
--------------------------------------------------
23+
24+
EOF
2125

2226
PWD=$(pwd) docker-compose up --force-recreate

0 commit comments

Comments
 (0)