Skip to content

Commit

Permalink
www: use the same cmd to get the hostname like in config.jinja
Browse files Browse the repository at this point in the history
  • Loading branch information
cremesk committed Nov 13, 2024
1 parent d44cf0e commit 602f205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/freifunk/base/ddmesh/var/www_freifunk/status.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ cat<<EOF
<tr><th>Knoten-IP-Adresse:</th><td colspan="7">$_ddmesh_ip ($_ddmesh_node)</td></tr>
<tr><th>Network ID:</th><td colspan="7">$(uci -qX get ffdd.sys.network_id)</td></tr>
<tr><th >Community Server:</th><td colspan="7">$(if [ "$(uci -qX get ffdd.sys.community_server)" -eq '1' ]; then printf '<img src="/images/yes.png" alt="yes">'; else printf '<img src="/images/no.gif" alt="no">'; fi)</td></tr>
<tr><th>Hostname:</th><td colspan="7">$(head -n1 /etc/hostname)</td></tr>
<tr><th>Hostname:</th><td colspan="7">$(sed -e '/^#/d' /etc/hostname)</td></tr>
<tr><th>Nameserver:</th><td colspan="7">$(grep nameserver /etc/resolv.conf | sed 's#nameserver##g')</td></tr>
<tr><th>Ger&auml;telaufzeit:</th><td colspan="7">$(uptime)</td></tr>
<tr><th>Prozesse:</th><td colspan="7">$(ps --no-headers xa | wc -l)</td></tr>
Expand Down

0 comments on commit 602f205

Please sign in to comment.