TiledViz
Loading...
Searching...
No Matches
connectionTest.sh
1#!/bin/bash
2
3# official way to provide password to psql: http://www.postgresql.org/docs/9.3/static/libpq-envars.html
4if [ ! -v POSTGRES_PASSWORD ]; then
5 echo "POSTGRES_PASSWORD must have been sets."
6 exit 1
7fi
8if [ ! -v POSTGRES_HOST ]; then
9 echo "POSTGRES_HOST must have been sets."
10 exit 1
11fi
12if [ ! -v POSTGRES_USER ]; then
13 echo "POSTGRES_USER must have been sets."
14 exit 1
15fi
16if [ ! -v POSTGRES_DB ]; then
17 echo "POSTGRES_DB must have been sets."
18 exit 1
19fi
20
21
22export PGPASSWORD=$POSTGRES_PASSWORD
23
24export passwordDB="$POSTGRES_PASSWORD"
25
26python3 TVConnections/create_HPC.py --sessionNAME='testSESSION' --host=${POSTGRES_HOST} --login=${POSTGRES_USER} --databasename=${POSTGRES_DB}
27RET=$?
28if [ $RET -gt 0 ]; then
29 exit $RET
30fi
31echo "create HPC container chain done."
32echo
33