From 5fb55a14d518bf4935c13b99b7659fee44856ff4 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Tue, 29 Dec 2020 20:53:46 +0100 Subject: [PATCH] make sure we restart lighttpd even on dietpi strangeness --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index fb3c18f..331dc7c 100755 --- a/install.sh +++ b/install.sh @@ -378,7 +378,7 @@ then fi fi -if systemctl show lighttpd 2>/dev/null | grep -qs 'UnitFileState=enabled'; then +if systemctl show lighttpd 2>/dev/null | grep -qs -F -e 'UnitFileState=enabled' -e 'ActiveState=active'; then echo "Restarting lighttpd ..." systemctl restart lighttpd fi