Mercurial > gemma
comparison schema/install-db.sh @ 569:ad07846b09d1
Add function to construct isrs from text
In passing moved all related functionality to its own set of files.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 05 Sep 2018 11:05:58 +0200 |
parents | 3af7ca761f6a |
children | fa417ff1f355 |
comparison
equal
deleted
inserted
replaced
568:99968a7394f7 | 569:ad07846b09d1 |
---|---|
99 # Default operation: create schema | 99 # Default operation: create schema |
100 createdb -p "$port" "$db" | 100 createdb -p "$port" "$db" |
101 psql -q -p "$port" -f "$BASEDIR/roles.sql" -d "$db" | 101 psql -q -p "$port" -f "$BASEDIR/roles.sql" -d "$db" |
102 psql -qtv ON_ERROR_STOP= -p "$port" -d "$db" \ | 102 psql -qtv ON_ERROR_STOP= -p "$port" -d "$db" \ |
103 -c "SET client_min_messages TO WARNING;" \ | 103 -c "SET client_min_messages TO WARNING;" \ |
104 -f "$BASEDIR/isrs.sql" \ | |
104 -f "$BASEDIR/gemma.sql" \ | 105 -f "$BASEDIR/gemma.sql" \ |
105 -f "$BASEDIR/manage_users.sql" \ | 106 -f "$BASEDIR/manage_users.sql" \ |
106 -f "$BASEDIR/auth.sql" | 107 -f "$BASEDIR/auth.sql" |
107 | 108 |
108 # setup initial login roles with given passwords: | 109 # setup initial login roles with given passwords: |