root@d:/var/log# /etc/init.d/hestia status
● hestia.service - LSB: starts the hestia control panel
Loaded: loaded (/etc/init.d/hestia; generated)
Active: active (exited) since Tue 2023-07-11 17:39:46 EEST; 5min ago
Docs: man:systemd-sysv-generator(8)
Process: 588 ExecStart=/etc/init.d/hestia start (code=exited, status=5)
Jul 11 17:39:45 d systemd[1]: Starting LSB: starts the hestia control panel…
Jul 11 17:39:46 d hestia[588]: Starting hestia-nginx: hestia-nginxjq: error (at :1): Cannot iterate over null (null)
Jul 11 17:39:46 d systemd[1]: Started LSB: starts the hestia control panel.
physical_nics="$(ip -d -j link show | jq -r '.[] | if .link_type == "loopback" // .linkinfo.info_kind then empty else .ifname end')"
if [ -z "$physical_nics" ]; then
physical_nics="$(ip -d -j link show | jq -r '.[] | if .link_type == "loopback" then empty else .ifname end')"
fi
echo $physical_nics;
for nic in $physical_nics; do
if [ -z "$ipv4_scope_global" ]; then
ipv4_scope_global="$(ip -4 -d -j addr show "$nic" | jq -r '.[].addr_info[] | if .scope == "global" then .local else empty end')"
fi
if [ -z "$ipv6_scope_global" ]; then
ipv6_scope_global="$(ip -6 -d -j addr show "$nic" | jq -r '.[].addr_info[] | if .scope == "global" then .local else empty end')"
fi
done