mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
get the systemd service file
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
eda8e3a963
commit
e5f15e216d
1 changed files with 5 additions and 0 deletions
|
@ -85,3 +85,8 @@ get_docker_effective_command_line_args() {
|
||||||
OPTION="$1"
|
OPTION="$1"
|
||||||
get_docker_cumulative_command_line_args $OPTION | tail -n1
|
get_docker_cumulative_command_line_args $OPTION | tail -n1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_systemd_service_file(){
|
||||||
|
SERVICE="$1"
|
||||||
|
systemctl show -p FragmentPath "$SERVICE" | sed 's/.*=//'
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue