From 602f205761a45e53fd57cd68e7e0e45bfb211658 Mon Sep 17 00:00:00 2001 From: creme Date: Wed, 13 Nov 2024 14:50:53 +0100 Subject: [PATCH] www: use the same cmd to get the hostname like in config.jinja --- salt/freifunk/base/ddmesh/var/www_freifunk/status.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/freifunk/base/ddmesh/var/www_freifunk/status.cgi b/salt/freifunk/base/ddmesh/var/www_freifunk/status.cgi index bbe0ef1d..79d8dcd2 100755 --- a/salt/freifunk/base/ddmesh/var/www_freifunk/status.cgi +++ b/salt/freifunk/base/ddmesh/var/www_freifunk/status.cgi @@ -53,7 +53,7 @@ cat<Knoten-IP-Adresse:$_ddmesh_ip ($_ddmesh_node) Network ID:$(uci -qX get ffdd.sys.network_id) Community Server:$(if [ "$(uci -qX get ffdd.sys.community_server)" -eq '1' ]; then printf 'yes'; else printf 'no'; fi) -Hostname:$(head -n1 /etc/hostname) +Hostname:$(sed -e '/^#/d' /etc/hostname) Nameserver:$(grep nameserver /etc/resolv.conf | sed 's#nameserver##g') Gerätelaufzeit:$(uptime) Prozesse:$(ps --no-headers xa | wc -l)