diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2017-04-20 10:50:11 +0200 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2017-04-20 10:50:11 +0200 |
commit | a86fa790950906f0d0f32d2b3d2069fb11d34c98 (patch) | |
tree | 3d5263756bc6ae849e12b60e33cbe5550459cb04 /build/test/postgres.sh | |
parent | 53d3a0593e3702a245dc90fb14a79e166bf7bbb3 (diff) |
Further tidying up
Diffstat (limited to 'build/test/postgres.sh')
-rwxr-xr-x | build/test/postgres.sh | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/build/test/postgres.sh b/build/test/postgres.sh deleted file mode 100755 index 1540d97..0000000 --- a/build/test/postgres.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -set -e -if [ ! -d /var/lib/postgresql/9.4/main ]; then - echo Bootstrapping DB - mkdir -p /var/lib/postgresql/9.4/main - chown -R postgres /var/lib/postgresql/9.4 - su postgres -c '/usr/lib/postgresql/9.4/bin/initdb /var/lib/postgresql/9.4/main' - service postgresql start - su postgres -c "psql --command=\"CREATE ROLE nms PASSWORD 'risbrod' NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\"" - su postgres -c "createdb -O nms nms" - su postgres -c "psql --command=\"CREATE ROLE grafana PASSWORD 'grafana' NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\"" - su postgres -c "createdb -O grafana grafana" - su postgres -c "cat /opt/gondul/build/schema.sql | psql nms" - service postgresql stop - echo Bootstrap done -fi -exec pg_ctlcluster --foreground 9.4 main start |