Fix not to rely on which
, or the scriptlets will fail on EL 10 systems
This commit is contained in:
parent
06ce137903
commit
da9aa22fa7
2
setup.sh
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user