Blame view

scripts/loadEnv.sh 166 Bytes
2d0ca0ba   Benjamin Renard   Load environment ...
1
2
#!/bin/bash

99ae8744   Benjamin Renard   Use config variab...
3
4
if [[ -z "${AMDA_IHM}" ]]; then
    echo "[ERROR] AMDA_IHM not defined"
2d0ca0ba   Benjamin Renard   Load environment ...
5
6
fi

99ae8744   Benjamin Renard   Use config variab...
7
8
if [ ! -z "$AMDA_IHM" ]; then
    eval $(php "$AMDA_IHM/php/getEnv.php")
2d0ca0ba   Benjamin Renard   Load environment ...
9
fi