Skip to content

Commit fd6deac

Browse files
committed
Allow services name to use dash and underscore
1 parent e2cdcca commit fd6deac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/fresh-start.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ else
642642
fi
643643

644644
# Validate the name
645-
run_function string_remove_all_special_char_string $LOCAL_NGINX_PROXY_SERVICE_NAME
645+
run_function string_remove_all_special_char_string $LOCAL_NGINX_PROXY_SERVICE_NAME "-_"
646646
NGINX_PROXY_SERVICE_NAME=${STRING_REMOVE_ALL_SPECIAL_CHAR_STRING_RESPONSE:-null}
647647
[[ $NGINX_PROXY_SERVICE_NAME == null ]] && echoerr "The service name can not contain special chars, neither be empty"
648648

@@ -712,7 +712,7 @@ else
712712
fi
713713

714714
# Validate the name
715-
run_function string_remove_all_special_char_string $LOCAL_LETSENCRYPT_SERVICE_NAME
715+
run_function string_remove_all_special_char_string $LOCAL_LETSENCRYPT_SERVICE_NAME "-_"
716716
LETSENCRYPT_SERVICE_NAME=${STRING_REMOVE_ALL_SPECIAL_CHAR_STRING_RESPONSE:-null}
717717
[[ $LETSENCRYPT_SERVICE_NAME == null ]] && echoerr "The service name can not contain special chars, neither be empty"
718718

@@ -782,7 +782,7 @@ else
782782
fi
783783

784784
# Validate the name
785-
run_function string_remove_all_special_char_string $LOCAL_DOCKER_GEN_SERVICE_NAME
785+
run_function string_remove_all_special_char_string $LOCAL_DOCKER_GEN_SERVICE_NAME "-_"
786786
DOCKER_GEN_SERVICE_NAME=${STRING_REMOVE_ALL_SPECIAL_CHAR_STRING_RESPONSE:-null}
787787
[[ $DOCKER_GEN_SERVICE_NAME == null ]] && echoerr "The service name can not contain special chars, neither be empty"
788788

0 commit comments

Comments
 (0)