INNER CODE UNIT · Shell
LOCAL_DOCKER_GEN_SERVICE_NAME
evertramos/nginx-proxy-automation · bin/fresh-start.sh:822
LOCAL_DOCKER_GEN_SERVICE_NAME=${USER_INPUT_RESPONSE:-$LOCAL_DEFAULT_DOCKER_GEN_SERVICE_NAME}
else
LOCAL_DOCKER_GEN_SERVICE_NAME=${ARG_DOCKER_GEN_SERVICE_NAME:-$LOCAL_DEFAULT_DOCKER_GEN_SERVICE_NAME}
fi
# Validate the name
run_function string_remove_all_special_char_string $LOCAL_DOCKER_GEN_SERVICE_NAME "-_"
DOCKER_GEN_SERVICE_NAME=${STRING_REMOVE_ALL_SPECIAL_CHAR_STRING_RESPONSE:-null}
[[ $DOCKER_GEN_SERVICE_NAME == null ]] && echoerror "The service name can not contain special chars, neither be empty"
# Check exists a container with this name
run_function docker_check_container_exists $DOCKER_GEN_SERVICE_NAME
if [[ "$DOCKER_CONTAINER_EXISTS" == true ]]; then
# Check if there is a container running with this name
run_function docker_check_container_is_running $DOCKER_GEN_SERVICE_NAME
if [[ "$DOCKER_CONTAINER_IS_RUNNING" == true ]]; then