Skip to content

Commit

Permalink
UPDATE | default PORT_FRONT=0
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiiMazurBeetroot committed Oct 19, 2023
1 parent d8ce36d commit 319d770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env-core/sh/core/core_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions .env-core/sh/core/core_notice.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 319d770

Please sign in to comment.