From 1662ddf17faad417953f153e6fb7b86cb42c61c6 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 14 Jan 2021 03:12:13 +0100 Subject: [PATCH] Add Docker & Operating System info properties (#42) --- lib/info.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/info.sh b/lib/info.sh index f49ba96..809d28e 100644 --- a/lib/info.sh +++ b/lib/info.sh @@ -132,3 +132,19 @@ function bashio::info.supported() { bashio::log.trace "${FUNCNAME[0]}" bashio::info 'supervisor.info.supported' '.supported' } + +# ------------------------------------------------------------------------------ +# Returns the Docker version running on the system. +# ------------------------------------------------------------------------------ +function bashio::info.docker() { + bashio::log.trace "${FUNCNAME[0]}" + bashio::info 'supervisor.info.docker' '.docker' +} + +# ------------------------------------------------------------------------------ +# Returns the operating system running on the system. +# ------------------------------------------------------------------------------ +function bashio::info.operating_system() { + bashio::log.trace "${FUNCNAME[0]}" + bashio::info 'supervisor.info.operating_system' '.operating_system' +}