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

Avoid duplicate onion domains

parent 488e46a6
No related branches found
No related tags found
No related merge requests found
......@@ -483,11 +483,11 @@ function web_admin_create_installed_apps {
# Replace app variables
sed -i "s|HOSTNAME|$(hostname)|g" "$filename"
sed -i "s|APPNAME|${app_name}|g" "$filename"
sed -i "s|APPURL|${domain_name}|g" "$filename"
if [[ "$ONION_ONLY" == 'no' ]]; then
sed -i '/ONIONURL/d' "$filename"
sed -i "s|ONIONURL|http://${onion_domain_name}|g" "$filename"
if [[ "$ONION_ONLY" != 'no' ]]; then
sed -i '/APPURL/d' "$filename"
else
sed -i "s|ONIONURL|${onion_domain_name}|g" "$filename"
sed -i "s|APPURL|${domain_name}|g" "$filename"
fi
sed -i "s|APPDESCRIPTION|${DESCRIPTION}|g" "$filename"
......
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