change templates location

This commit is contained in:
Alexandre
2022-01-17 09:40:26 +01:00
parent 49998a37bc
commit ccc21b28a7
120 changed files with 215 additions and 215 deletions

12
.templates/91-silent.sh Normal file
View File

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