Firewall display style

This commit is contained in:
Bob Mottram 2018-03-18 09:55:34 +00:00
parent e03071ec18
commit 704932c1a0
2 changed files with 6 additions and 7 deletions

View File

@ -10,7 +10,7 @@
[[file:images/logo.png]] [[file:images/logo.png]]
#+END_CENTER #+END_CENTER
#+BEGIN_EXPORT html #+BEGIN_EXPORT HTML
<center> <center>
<h1>Social Instance</h1> <h1>Social Instance</h1>
</center> </center>

View File

@ -1776,16 +1776,15 @@ function reinstall_mariadb {
} }
function show_firewall { function show_firewall {
clear W=()
echo $"Firewall Settings"
echo ''
while read -r line; do while read -r line; do
firewall_name=$(echo "$line" | awk -F '=' '{print $1}') firewall_name=$(echo "$line" | awk -F '=' '{print $1}')
firewall_port=$(echo "$line" | awk -F '=' '{print $2}') firewall_port=$(echo "$line" | awk -F '=' '{print $2}')
echo -n -e "$(pad_string "${firewall_name}")" W+=("$(pad_string "${firewall_name}")" "${firewall_port}")
echo "${firewall_port}"
done < "$FIREWALL_CONFIG" done < "$FIREWALL_CONFIG"
any_key
# shellcheck disable=SC2068
dialog --backtitle $"Freedombone Administrator Control Panel" --title $"Firewall" --menu $"Press ESC to return to main menu" 28 60 28 "${W[@]}" 3>&2 2>&1 1>&3
} }
function email_extra_domains { function email_extra_domains {