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

Fix onion domain name

parent 2b2a7a9b
No related branches found
No related tags found
No related merge requests found
......@@ -448,7 +448,7 @@ function web_admin_create_installed_apps {
fi
onion_domain_name=
if [ -f "/var/lib/tor/hidden_service_${app_name}/hostname" ]; then
onion_domain_name="/var/lib/tor/hidden_service_${app_name}/hostname"
onion_domain_name=$(cat "/var/lib/tor/hidden_service_${app_name}/hostname")
fi
if [ "$domain_name" ]; then
if [[ "$domain_name" != *'.onion' ]]; then
......
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