]>
Git — Sourcephile - gargantext.git/blob - bin/psql
5 then echo "USAGE : ./psql gargantext.ini"
11 grep $1 $INIFILE | sed "s/^.*= //"
14 USER
=$(getter "DB_USER")
15 NAME
=$(getter "DB_NAME")
16 PASS
=$(getter "DB_PASS")
17 HOST
=$(getter "DB_HOST")
18 PORT
=$(getter "DB_PORT")
20 # "postgresql://${USER}:${PASS}@${HOST}:${PORT}/${NAME}"
22 GARGDB
="postgresql://${USER}:${PASS}@${HOST}:${PORT}/${NAME}"
24 #echo "connecting to $GARGDB"
26 psql
"postgresql://${USER}:${PASS}@${HOST}:${PORT}/${NAME}"