add get_docker_configuration_file_args

Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
Thomas Sjögren 2017-02-20 11:20:41 +01:00
parent 7c20138161
commit 7410cdf9f6

View file

@ -77,7 +77,16 @@ get_docker_cumulative_command_line_args() {
# Does not account for option default or implicit options. # Does not account for option default or implicit options.
get_docker_effective_command_line_args() { 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_docker_configuration_file_args() {
OPTION="$1"
FILE="$(get_docker_effective_command_line_args '--config-file' | \
sed 's/.*=//g')"
if ! grep "$OPTION" "$FILE"; then
echo 0
fi
} }
get_systemd_service_file(){ get_systemd_service_file(){