Mercurial > lada > lada-server
comparison db_schema/setup-db.sh @ 1200:7f4c473e7856
Fix DB setup.
DIR has to be an absolute path, if we use it after a cd.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 01 Dec 2016 12:25:20 +0100 |
parents | d7ffadffd363 |
children | 2f9dfd292ff1 |
comparison
equal
deleted
inserted
replaced
1199:7e78849e475c | 1200:7f4c473e7856 |
---|---|
8 # DB_NAME name of the databaes (default = ROLE_NAME) | 8 # DB_NAME name of the databaes (default = ROLE_NAME) |
9 # | 9 # |
10 # There will be used a remote database server if there exists the | 10 # There will be used a remote database server if there exists the |
11 # enviroment variable DB_SRV and optional DB_PORT | 11 # enviroment variable DB_SRV and optional DB_PORT |
12 | 12 |
13 DIR=`dirname $0` | 13 DIR=$(readlink -f $(dirname $0)) |
14 | 14 |
15 while getopts "cn" opt; do | 15 while getopts "cn" opt; do |
16 case "$opt" in | 16 case "$opt" in |
17 c) | 17 c) |
18 DROP_DB="true" | 18 DROP_DB="true" |