Update 20-config

This commit is contained in:
Alexandre
2021-10-31 18:26:49 +01:00
committed by GitHub
parent 39d14723b1
commit 85ae5f9a62

View File

@@ -35,6 +35,12 @@ fi
if bashio::config.has_value 'customUI'; then
CUSTOMUI=$(bashio::config 'customUI')
[ $CUSTOMUI != "standard" ] && sed -i "1a export TRANSMISSION_WEB_HOME=\"/$CUSTOMUI/\"" /etc/services.d/transmission/run
# Enable transmission-web-control return to default UI
ln -s /usr/share/transmission/web/style /transmission-web-control
ln -s /usr/share/transmission/web/images /transmission-web-control
ln -s /usr/share/transmission/web/javascript /transmission-web-control
ln -s /usr/share/transmission/web/index.html /transmission-web-control/index.original.html
fi
bashio::log.info "UI selected : $CUSTOMUI"