diff options
author | Dan Radez <dradez@redhat.com> | 2016-12-21 20:01:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-12-21 20:01:22 +0000 |
commit | 66ca37b6205d256454f2f1973de32ed7fa062902 (patch) | |
tree | 18d6a94fd2083e68a4f9cb58623824a233cb56ce /ci/util.sh | |
parent | 6a6e2dee30562e14a99bf979b65e6817ad08d75a (diff) | |
parent | a19cf619b0ca81db662b1167a94350f6c72c8220 (diff) |
Merge "Updating ENV var names to better reflect what they point to"
Diffstat (limited to 'ci/util.sh')
-rwxr-xr-x | ci/util.sh | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -2,9 +2,22 @@ # Utility script used to interact with a deployment # @author Tim Rozet (trozet@redhat.com) -CONFIG=${CONFIG:-'/var/opt/opnfv'} -RESOURCES=${RESOURCES:-"$CONFIG/images"} -LIB=${LIB:-"$CONFIG/lib"} +# Backwards compat for old ENV Vars +# Remove in E Release +if [ -n "$CONFIG" ]; then + echo -e "${red}WARNING: ENV var CONFIG is Deprecated, please unset CONFIG and export BASE in its place${reset}" + echo -e "${red}WARNING: CONFIG will be removed in E${reset}" + BASE=$CONFIG +fi +if [ -n "$RESOURCES" ]; then + echo -e "${red}WARNING: ENV var RESOURCES is Deprecated, please unset RESOURCES and export IMAGES in its place${reset}" + echo -e "${red}WARNING: RESOURCES will be removed in E${reset}" + IMAGES=$RESOURCES +fi + +BASE=${BASE:-'/var/opt/opnfv'} +IMAGES=${IMAGES:-"$BASE/images"} +LIB=${LIB:-"$BASE/lib"} VALID_CMDS="undercloud overcloud opendaylight debug-stack mock-detached -h --help" source $LIB/utility-functions.sh |