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

Show onion domain names for installed apps

parent 8aa3ee4f
No related branches found
No related tags found
No related merge requests found
...@@ -439,13 +439,17 @@ function web_admin_create_installed_apps { ...@@ -439,13 +439,17 @@ function web_admin_create_installed_apps {
fi fi
read_config_param "${app_name_upper}_DOMAIN_NAME" read_config_param "${app_name_upper}_DOMAIN_NAME"
test_domain_name="${app_name_upper}_DOMAIN_NAME" if [[ "$ONION_ONLY" == 'no' ]]; then
domain_name=${!test_domain_name} test_domain_name="${app_name_upper}_DOMAIN_NAME"
domain_name=${!test_domain_name}
else
domain_name=$(cat "/var/lib/tor/hidden_service_${app_name}/hostname")
fi
if [ "$domain_name" ]; then if [ "$domain_name" ]; then
if [[ "$domain_name" != *'.onion' ]]; then if [[ "$domain_name" != *'.onion' ]]; then
domain_name="https://${!test_domain_name}" domain_name="https://${!test_domain_name}"
else else
domain_name="http://${!test_domain_name}" domain_name="http://${test_domain_name}"
fi fi
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