Mercurial > lada > lada-server
changeset 859:0e895f13f0b6
merged.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 02 Feb 2016 15:33:24 +0100 |
parents | 49c88a71909b (current diff) e797391714a0 (diff) |
children | 7c6b7c08d31d |
files | |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/db_schema/setup-db.sh Tue Feb 02 15:32:24 2016 +0100 +++ b/db_schema/setup-db.sh Tue Feb 02 15:33:24 2016 +0100 @@ -1,9 +1,9 @@ #!/bin/sh DIR=`dirname $0` -ROLE_NAME=lada -ROLE_PW=lada -DB_NAME=lada +ROLE_NAME=${1:-lada} +ROLE_PW=${2:-$ROLE_NAME} +DB_NAME=${3:-$ROLE_NAME} psql --command "CREATE USER $ROLE_NAME PASSWORD '$ROLE_PW';" createdb -E UTF-8 $DB_NAME