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

Remove ports test on onion only systems

parent 0d7b92c2
No related branches found
No related tags found
No related merge requests found
......@@ -534,10 +534,17 @@ function web_admin_create_installed_apps {
fi
fi
# remove help button if there are no help screen for this app
app_help_screen="$webadmin_install_dir/help_${app_name}.html"
if [ ! -f "$app_help_screen" ]; then
# remove help button if there are no help screen for this app
sed -i '/submithelp/d' "$filename"
else
# On onion only we don't need to forward ports, so
# that text can be removed from the help screen
if [[ "$ONION_ONLY" == 'no' ]]; then
sed -i '/"portstext"/d' "$app_help_screen"
sed -i '/"subheaderports"/d' "$app_help_screen"
fi
fi
# Replace app variables
......
......@@ -47,6 +47,13 @@
font-weight: bold;
}
.subheaderports {
margin-left : 10%;
text-align: left;
font-size: 110%;
font-weight: bold;
}
.helptext {
width: 80%;
text-align: left;
......@@ -54,6 +61,13 @@
margin-left : 10%;
}
.portstext {
width: 80%;
text-align: left;
font-size: 100%;
margin-left : 10%;
}
.row {
display: -ms-flexbox;
display: flex;
......@@ -98,7 +112,11 @@
<p class="headertext">XMPP</p>
<p class="helptext">Uses ports: <i>5222, 5223, 5269, 5280, 5281</i></p>
<p class="subheaderports">Ports</p>
<p class="portstext">Forward the following ports from your internet router:</p>
<p class="portstext">5222, 5223, 5269, 5280, 5281</p>
<p class="subheadertext">Setting up with an Android phone</p>
......
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