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

Specify the path of file .environment #49

Closed DimitriPapadopoulos closed 5 years ago

DimitriPapadopoulos commented 5 years ago

We want source to look for file .environment in the same directory as setup.sh itself, not in the user's PATH. Indeed I had other software with an .environment file in my PATH. Perhaps that's bad practice but that's beyond my control. If we follow the installation instructions, setup.sh is in the current directory because we run it as ./setup.sh.

From the Bash Reference Manual:

. filename [arguments]

Read and execute commands from the filename argument in the current shell context. If filename does not contain a slash, the PATH variable is used to find filename. When Bash is not in POSIX mode, the current directory is searched if filename is not found in $PATH.

Fixes #48.