mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
include /run in get_service_file
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
820abe98c3
commit
e081393ad7
1 changed files with 4 additions and 0 deletions
|
@ -144,6 +144,10 @@ get_service_file() {
|
||||||
systemctl show -p FragmentPath "$SERVICE" | sed 's/.*=//'
|
systemctl show -p FragmentPath "$SERVICE" | sed 's/.*=//'
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
if find /run -name "$SERVICE" 2> /dev/null 1>&2; then
|
||||||
|
find /run -name "$SERVICE" | head -n1
|
||||||
|
return
|
||||||
|
fi
|
||||||
echo "/usr/lib/systemd/system/$SERVICE"
|
echo "/usr/lib/systemd/system/$SERVICE"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue