Create 91-silent.sh

This commit is contained in:
Alexandre
2021-12-05 19:22:41 +01:00
committed by GitHub
parent 527113a062
commit f5148a430b

View File

@@ -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