mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 14:58:08 +00:00
Fix chronometer output if web interface is not installed
Signed-off-by: Reto Gantenbein <reto.gantenbein@linuxmonk.ch>
This commit is contained in:
parent
0d8ece1be2
commit
e841347057
@ -228,8 +228,14 @@ get_sys_stats() {
|
|||||||
mapfile -t ph_ver_raw < <(pihole -v -c 2> /dev/null | sed -n 's/^.* v/v/p')
|
mapfile -t ph_ver_raw < <(pihole -v -c 2> /dev/null | sed -n 's/^.* v/v/p')
|
||||||
if [[ -n "${ph_ver_raw[0]}" ]]; then
|
if [[ -n "${ph_ver_raw[0]}" ]]; then
|
||||||
ph_core_ver="${ph_ver_raw[0]}"
|
ph_core_ver="${ph_ver_raw[0]}"
|
||||||
|
if [[ ${#ph_ver_raw[@]} -eq 2 ]]; then
|
||||||
|
# AdminLTE not installed
|
||||||
|
ph_lte_ver="n.a."
|
||||||
|
ph_ftl_ver="${ph_ver_raw[1]}"
|
||||||
|
else
|
||||||
ph_lte_ver="${ph_ver_raw[1]}"
|
ph_lte_ver="${ph_ver_raw[1]}"
|
||||||
ph_ftl_ver="${ph_ver_raw[2]}"
|
ph_ftl_ver="${ph_ver_raw[2]}"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
ph_core_ver="-1"
|
ph_core_ver="-1"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user