diff --git a/.env-core/sh/core/core_helpers.sh b/.env-core/sh/core/core_helpers.sh index a6ec404..de0c0c2 100644 --- a/.env-core/sh/core/core_helpers.sh +++ b/.env-core/sh/core/core_helpers.sh @@ -26,7 +26,7 @@ check_instances_file_exists() { print_to_file_instances() { if [[ $PORT && $DOMAIN_NAME ]]; then - [[ $PORT_FRONT == "" ]] && PORT_FRONT='-' + [[ $PORT_FRONT == "" ]] && PORT_FRONT=0 echo "$PORT | active | $DOMAIN_NAME | $DOMAIN_FULL | $DB_NAME | $DB_TYPE | $PROJECT_TYPE | $PORT_FRONT |" >>"$FILE_INSTANCES" # Save backup diff --git a/.env-core/sh/core/core_notice.sh b/.env-core/sh/core/core_notice.sh index 8c4d30c..2250c4f 100644 --- a/.env-core/sh/core/core_notice.sh +++ b/.env-core/sh/core/core_notice.sh @@ -30,12 +30,10 @@ notice_project_urls() { ECHO_INFO "Project URLs:" ECHO_KEY_VALUE "DOMAIN_FULL:" "https://$DOMAIN_FULL" - [[ $PORT_FRONT != "-" && $PORT_FRONT != "" ]] && ECHO_KEY_VALUE "DOMAIN_FRONT:" "http://localhost:$PORT_FRONT" + [[ $PORT_FRONT =~ ^[0-9]+$ && $PORT_FRONT -ne 0 ]] && ECHO_KEY_VALUE "DOMAIN_FRONT:" "http://localhost:$PORT_FRONT" [[ $DOMAIN_ADMIN != "" ]] && ECHO_KEY_VALUE "DOMAIN_ADMIN:" "https://$DOMAIN_ADMIN" [[ $DOMAIN_ADMIN != "" ]] && ECHO_KEY_VALUE "DOMAIN_DB:" "https://$DOMAIN_DB" [[ $DOMAIN_MAIL != "" ]] && ECHO_KEY_VALUE "DOMAIN_MAIL:" "https://$DOMAIN_MAIL" - - ECHO_SUCCESS "Done!" } notice_project_vars() {