]>
Git — Sourcephile - gargantext.git/blob - devops/postgres/create
4 # postgresql://$USER:$PW@localhost/$DB
9 grep $1 $INIFILE | sed "s/^.*= //"
12 USER
=$(getter "DB_USER")
13 NAME
=$(getter "DB_NAME")
14 PASS
=$(getter "DB_PASS")
15 HOST
=$(getter "DB_HOST")
16 PORT
=$(getter "DB_PORT")
19 #psql -c "CREATE USER \"${USER}\""
20 #psql -c "ALTER USER \"${USER}\" with PASSWORD '${PW}'"
22 psql
-c "DROP DATABASE IF EXISTS \"${NAME}\""
24 psql
"${NAME}" < extensions.sql
25 #psql "${NAME}" < schema.sql
28 #../../bin/psql ../../gargantext.ini < gargandb.dump
30 psql
-c "ALTER DATABASE \"${NAME}\" OWNER to \"${USER}\""