changeset 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 7e78849e475c
children 530a33fffa28
files db_schema/setup-db.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)