Skip to content
Snippets Groups Projects
Commit ef511cb1 authored by Bob Mottram's avatar Bob Mottram
Browse files

Show local domain when port is specified

parent 0be97d1f
No related branches found
No related tags found
No related merge requests found
......@@ -166,7 +166,7 @@ function web_create_homepage {
if grep -q "SHOW_URL_PORT=" "$app_filename"; then
domain_port_number=$(grep "SHOW_URL_PORT=" "$app_filename" | awk -F '=' '{print $2}')
if [ "$domain_port_number" ]; then
domain_name="${domain_name}:${domain_port_number}"
domain_name="http://${PROJECT_NAME}:${domain_port_number}"
onion_domain_name="${onion_domain_name}:${domain_port_number}"
fi
fi
......
......@@ -869,7 +869,7 @@ function web_admin_create_installed_apps_category {
if grep -q "SHOW_URL_PORT=" "$app_filename"; then
domain_port_number=$(grep "SHOW_URL_PORT=" "$app_filename" | head -n 1 | awk -F '=' '{print $2}')
if [ "$domain_port_number" ]; then
domain_name="${domain_name}:${domain_port_number}"
domain_name="http://${PROJECT_NAME}:${domain_port_number}"
onion_domain_name="${onion_domain_name}:${domain_port_number}"
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment