summaryrefslogtreecommitdiffstats
path: root/docker/prepare_env.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/prepare_env.sh')
-rwxr-xr-xdocker/prepare_env.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/docker/prepare_env.sh b/docker/prepare_env.sh
index 1b3144a0d..4c944b22c 100755
--- a/docker/prepare_env.sh
+++ b/docker/prepare_env.sh
@@ -61,10 +61,11 @@ fi
info "Checking environment variables INSTALLER_TYPE and INSTALLER_IP"
if [ -z ${INSTALLER_TYPE} ]; then
error "Environment variable 'INSTALLER_TYPE' is not defined."
-elif [ "${INSTALLER_TYPE}" != "fuel" ] && [ "${INSTALLER_TYPE}" != "foreman" ]; then
+elif [[ ${INSTALLER_TYPE} =~ ^(fuel|foreman|compass|apex|juju)$ ]]; then
+ info "INSTALLER_TYPE env variable found: ${INSTALLER_TYPE}"
+else
error "Invalid environment variable INSTALLER_TYPE=${INSTALLER_TYPE}"
fi
-info "INSTALLER_TYPE env variable found: ${INSTALLER_TYPE}"
if [ -z ${INSTALLER_IP} ]; then
error "Environment variable 'INSTALLER_IP' is not defined."