mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
modules.lxc.running_systemd: use command -v
not which
Fixes #30676. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html
This commit is contained in:
parent
36db0f99ed
commit
f8f867570f
1 changed files with 1 additions and 1 deletions
|
@ -3188,7 +3188,7 @@ def running_systemd(name, cache=True, path=None):
|
|||
'''\
|
||||
#!/usr/bin/env bash
|
||||
set -x
|
||||
if ! which systemctl 1>/dev/null 2>/dev/null;then exit 2;fi
|
||||
if ! command -v systemctl 1>/dev/null 2>/dev/null;then exit 2;fi
|
||||
for i in \\
|
||||
/run/systemd/journal/dev-log\\
|
||||
/run/systemd/journal/flushed\\
|
||||
|
|
Loading…
Add table
Reference in a new issue