mirror of
https://github.com/Mesteriis/hassio-addons-avm.git
synced 2026-01-09 15:01:02 +01:00
15 lines
471 B
Bash
Executable File
15 lines
471 B
Bash
Executable File
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
set -e
|
|
|
|
###############
|
|
# SILENT MODE #
|
|
###############
|
|
|
|
if bashio::config.true 'silent'; then
|
|
APPEND=' > /dev/null'
|
|
sed -i '$s|$|'"$APPEND"'|' /etc/services.d/*/run &>/dev/null || true
|
|
sed -i '$s|$|'"$APPEND"'|' /etc/cont-init.d/*/*run* &>/dev/null || true
|
|
bashio::log.info 'Silent mode activated, all logs from emby server are hidden. Disable this option if you need to troubleshoot the addon.'
|
|
fi
|