mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
Compare commits
4 commits
c495b3a774
...
23110269a6
Author | SHA1 | Date | |
---|---|---|---|
|
23110269a6 | ||
|
966929427e | ||
|
287fd8774b | ||
|
e081393ad7 |
1 changed files with 5 additions and 1 deletions
|
@ -140,7 +140,11 @@ get_service_file() {
|
||||||
echo "/lib/systemd/system/$SERVICE"
|
echo "/lib/systemd/system/$SERVICE"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if systemctl show -p FragmentPath "$SERVICE" 2> /dev/null 1>&2; then
|
if find /run -name "$SERVICE" 2> /dev/null 1>&2; then
|
||||||
|
find /run -name "$SERVICE" | head -n1
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
if [ "$(systemctl show -p FragmentPath "$SERVICE" | sed 's/.*=//')" != "" ]; then
|
||||||
systemctl show -p FragmentPath "$SERVICE" | sed 's/.*=//'
|
systemctl show -p FragmentPath "$SERVICE" | sed 's/.*=//'
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue