From da9aa22fa730412e5dbda88d7a1914494e017289 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Thu, 12 Jun 2025 19:17:50 +0300 Subject: [PATCH] Fix not to rely on `which`, or the scriptlets will fail on EL 10 systems --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index d04205756..e14562219 100755 --- a/setup.sh +++ b/setup.sh @@ -662,7 +662,7 @@ if [ ! -f "$config_dir/.pre-install" ]; then fi # Test if we have systemd system -systemctlcmd=$(which systemctl 2>/dev/null) +systemctlcmd=$(command -v systemctl 2>/dev/null || :) if [ -x "$systemctlcmd" ]; then initsys=$(cat /proc/1/comm 2>/dev/null) if [ "$initsys" != "systemd" ]; then