[Lada-commits] [PATCH 5 of 5] merged

Wald Commits scm-commit at wald.intevation.org
Tue Feb 2 15:33:18 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1454423604 -3600
# Node ID 0e895f13f0b69e2e5e10ca0c4b4e0b464f6487da
# Parent  49c88a71909b152ffcf63988d40f6b6e0c6ded18
# Parent  e797391714a09d6c79e35709cc8219c8b009571e
merged.

diff -r 49c88a71909b -r 0e895f13f0b6 db_schema/setup-db.sh
--- 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


More information about the Lada-commits mailing list