mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #30747 from jfindlay/lxc_which
modules.lxc.running_systemd: use `command -v` not `which`
This commit is contained in:
commit
36752906c4
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