diff --git a/zzz_templates/91-silent.sh b/zzz_templates/91-silent.sh new file mode 100644 index 000000000..12fc65218 --- /dev/null +++ b/zzz_templates/91-silent.sh @@ -0,0 +1,12 @@ +#!/usr/bin/with-contenv bashio + +############### +# SILENT MODE # +############### + +if bashio::config.true 'silent'; then +APPEND=' > /dev/null' +[ -f /etc/services.d/*/run ] && sed -i '$s|$|'"$APPEND"'|' /etc/services.d/*/run +[ -f /etc/cont-init.d/*/*run* ] && sed -i '$s|$|'"$APPEND"'|' /etc/cont-init.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