comparison prepare_psql.sh @ 11:cb4cee85202a draft

planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/chado commit 0b135f1ea2623ea68e41ac88e13d99e6b4ad8bea
author gga
date Mon, 08 Jul 2019 05:37:56 -0400
parents
children
comparison
equal deleted inserted replaced
10:f8d27e79e363 11:cb4cee85202a
1 #!/bin/bash
2
3 export PWD=`pwd` &&
4 sed -i.bak "s|unix_socket_directories.*|unix_socket_directories = '$PWD/postgresql/'|" ./postgresql/db/postgresql.conf &&
5
6 pglite start -d ./postgresql &&
7
8 timeout 60 bash -c 'until pglite status -d ./postgresql | grep -F -q "server is running"; do sleep 1; done' &&
9 pglite status -d ./postgresql &&
10 timeout 60 bash -c 'until ls -la ./postgresql | grep -F -q ".s.PGSQL.5432"; do sleep 1; done' &&
11 pglite status -d ./postgresql &&
12
13 echo "__default: local" > '.auth.yml' &&
14 echo "local:" >> '.auth.yml' &&
15 echo " dbhost: \"xxx\"" >> '.auth.yml' &&
16 echo " dbname: \"xxx\"" >> '.auth.yml' &&
17 echo " dbpass: \"xxx\"" >> '.auth.yml' &&
18 echo " dbuser: \"xxx\"" >> '.auth.yml' &&
19 echo " dbschema: \"$1\"" >> '.auth.yml' &&
20 echo " dbport: \"xxx\"" >> '.auth.yml' &&
21 echo " dburl: \"$(pglite url -d ./postgresql)\"" >> '.auth.yml' &&
22
23 export CHAKIN_GLOBAL_CONFIG_PATH='.auth.yml'