Mercurial > lada > lada-server
diff db_schema/setup-db.sh @ 859:0e895f13f0b6
merged.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 02 Feb 2016 15:33:24 +0100 |
parents | e797391714a0 |
children | d47e6b8f3897 |
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