From 68042ecec6f9102b87879367b8a8a2492327a68d Mon Sep 17 00:00:00 2001 From: Ilia Date: Fri, 22 Apr 2022 13:58:30 +0300 Subject: [PATCH] Fix systemctl test --- makedebian.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makedebian.pl b/makedebian.pl index d95b25a1f..45b948efe 100755 --- a/makedebian.pl +++ b/makedebian.pl @@ -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