mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-26 10:33:40 +02:00
Create 91-silent.sh
This commit is contained in:
11
webtop/root/etc/cont-init.d/91-silent.sh
Normal file
11
webtop/root/etc/cont-init.d/91-silent.sh
Normal 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
|
||||||
Reference in New Issue
Block a user