[Lada-commits] [PATCH] Fix DB setup

Wald Commits scm-commit at wald.intevation.org
Thu Dec 1 12:25:36 CET 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1480591520 -3600
# Node ID 7f4c473e78560f2f0150306ad2c79a584d5fdb2d
# Parent  7e78849e475cb10093de542c84d8340e26168a6d
Fix DB setup.

DIR has to be an absolute path, if we use it after a cd.

diff -r 7e78849e475c -r 7f4c473e7856 db_schema/setup-db.sh
--- a/db_schema/setup-db.sh	Wed Nov 30 13:03:53 2016 +0100
+++ b/db_schema/setup-db.sh	Thu Dec 01 12:25:20 2016 +0100
@@ -10,7 +10,7 @@
 # There will be used a remote database server if there exists the
 # enviroment variable DB_SRV and optional DB_PORT
 
-DIR=`dirname $0`
+DIR=$(readlink -f $(dirname $0))
 
 while getopts "cn" opt; do
     case "$opt" in


More information about the Lada-commits mailing list