Fix systemctl test

This commit is contained in:
Ilia
2022-04-22 13:58:30 +03:00
parent 349741ce88
commit 68042ecec6

View File

@@ -326,7 +326,7 @@ if [ "$product" = "webmin" ]; then
fi
fi
rm -f /var/lock/subsys/$baseproduct
if command -v systemctl >/dev/null 2>&1; then
if [ -x "\$(command -v systemctl)" >/dev/null 2>&1 ] && [ -d "/etc/systemd" ]; then
systemctl daemon-reload >/dev/null 2>&1
fi
if [ "$inetd" != "1" ]; then