INNER CODE UNIT · Shell
DOCKER_GEN_SERVICE_NAME
evertramos/nginx-proxy-automation · bin/fresh-start.sh:829
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
[[ "$SILENT" != true ]] && echowarning \
"The container '$DOCKER_GEN_SERVICE_NAME' is running in this server \
\nmake sure you have unique names for each container. This script \
\nmight stop and remove the container if you set '--yes' or reply \
\n'yes' on the line below, but, there is no turn back on this action!"
if [[ "$REPLY_YES" == true ]]; then