INNER CODE UNIT · Shell

LOCAL_NGINX_PROXY_SERVICE_NAME

evertramos/nginx-proxy-automation · bin/fresh-start.sh:682

  LOCAL_NGINX_PROXY_SERVICE_NAME=${USER_INPUT_RESPONSE:-$LOCAL_DEFAULT_NGINX_PROXY_SERVICE_NAME}
else
  LOCAL_NGINX_PROXY_SERVICE_NAME=${ARG_NGINX_PROXY_SERVICE_NAME:-$LOCAL_DEFAULT_NGINX_PROXY_SERVICE_NAME}
fi

# Validate the name
run_function string_remove_all_special_char_string $LOCAL_NGINX_PROXY_SERVICE_NAME "-_"
NGINX_PROXY_SERVICE_NAME=${STRING_REMOVE_ALL_SPECIAL_CHAR_STRING_RESPONSE:-null}
[[ $NGINX_PROXY_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 $NGINX_PROXY_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 $NGINX_PROXY_SERVICE_NAME

  if [[ "$DOCKER_CONTAINER_IS_RUNNING" == true ]]; then

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…