make sure we restart lighttpd even on dietpi strangeness

This commit is contained in:
Matthias Wirth
2020-12-29 20:53:46 +01:00
parent 42bb40d2af
commit 5fb55a14d5

View File

@@ -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