From f5148a430b08b86fe64e5da9fb455dd5b0d03e45 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 5 Dec 2021 19:22:41 +0100 Subject: [PATCH] Create 91-silent.sh --- webtop/root/etc/cont-init.d/91-silent.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 webtop/root/etc/cont-init.d/91-silent.sh diff --git a/webtop/root/etc/cont-init.d/91-silent.sh b/webtop/root/etc/cont-init.d/91-silent.sh new file mode 100644 index 000000000..1714f47de --- /dev/null +++ b/webtop/root/etc/cont-init.d/91-silent.sh @@ -0,0 +1,11 @@ +#!/usr/bin/with-contenv bashio + +############### +# SILENT MODE # +############### + +if bashio::config.true 'silent'; then +APPEND=' > /dev/null' +sed -i '$s|$|'"$APPEND"'|' /etc/services.d/*/run +bashio::log.info 'Silent mode activated, all logs from emby server are hidden. Disable this option if you need to troubleshoot the addon.' +fi