LREN-CHUV / mip-microservices-infrastructure

Generic version of the scripts used to deploy the Medical Informatics Platform
Apache License 2.0
1 stars 9 forks source link

The ROOT directory is not what you think it is #40

Closed DimitriPapadopoulos closed 5 years ago

DimitriPapadopoulos commented 5 years ago

The ROOT directory is the subdirectory that contains this script - currently common/scripts. The envs and docs subdirectories are created in the actual root directory of this repository, two levels above common/scripts. This happens because of this part of the code:

ROOT=$(get_script_dir)
cd "$ROOT/../.."

Alternatively, you can change the above code to something like:

ROOT=$(get_script_dir)
ROOT=`dirname "$ROOT"`
ROOT=`dirname "$ROOT"`
cd "$ROOT"

Fixes #41.

DimitriPapadopoulos commented 5 years ago

Replaced by #45.