mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-21 05:43:08 +00:00
Adjust check-config.sh
This commit is contained in:
parent
2b4bf59a40
commit
e3b7c2d4db
@ -219,13 +219,13 @@ print_head_1 "Checking .env file values"
|
|||||||
|
|
||||||
WRONG_ENV_FILES_VALUES=0
|
WRONG_ENV_FILES_VALUES=0
|
||||||
|
|
||||||
DEBUG_COMPOSE_ENTRYPOINT="$( get_env_value "DEBUG_COMPOSE_ENTRYPOINT" )"
|
DEBUG_ENTRYPOINT="$( get_env_value "DEBUG_ENTRYPOINT" )"
|
||||||
if [ "${DEBUG_COMPOSE_ENTRYPOINT}" != "0" ] && [ "${DEBUG_COMPOSE_ENTRYPOINT}" != "1" ] && [ "${DEBUG_COMPOSE_ENTRYPOINT}" != "2" ]; then
|
if [ "${DEBUG_ENTRYPOINT}" != "0" ] && [ "${DEBUG_ENTRYPOINT}" != "1" ] && [ "${DEBUG_ENTRYPOINT}" != "2" ] && [ "${DEBUG_ENTRYPOINT}" != "3" ] && [ "${DEBUG_ENTRYPOINT}" != "3" ]; then
|
||||||
log_err "Variable 'DEBUG_COMPOSE_ENTRYPOINT' should be 0, 1 or 2. Has: ${DEBUG_COMPOSE_ENTRYPOINT}"
|
log_err "Variable 'DEBUG_ENTRYPOINT' should be 0, 1 or 2. Has: ${DEBUG_ENTRYPOINT}"
|
||||||
RET_CODE=$(( RET_CODE + 1))
|
RET_CODE=$(( RET_CODE + 1))
|
||||||
WRONG_ENV_FILES_VALUES=1
|
WRONG_ENV_FILES_VALUES=1
|
||||||
else
|
else
|
||||||
log_debug "Variable 'DEBUG_COMPOSE_ENTRYPOINT' has correct value: ${DEBUG_COMPOSE_ENTRYPOINT}"
|
log_debug "Variable 'DEBUG_ENTRYPOINT' has correct value: ${DEBUG_ENTRYPOINT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DOCKER_LOGS="$( get_env_value "DOCKER_LOGS" )"
|
DOCKER_LOGS="$( get_env_value "DOCKER_LOGS" )"
|
||||||
|
Loading…
Reference in New Issue
Block a user