mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-04 14:54:07 +02:00
Update 20-config
This commit is contained in:
@@ -35,6 +35,12 @@ fi
|
|||||||
if bashio::config.has_value 'customUI'; then
|
if bashio::config.has_value 'customUI'; then
|
||||||
CUSTOMUI=$(bashio::config 'customUI')
|
CUSTOMUI=$(bashio::config 'customUI')
|
||||||
[ $CUSTOMUI != "standard" ] && sed -i "1a export TRANSMISSION_WEB_HOME=\"/$CUSTOMUI/\"" /etc/services.d/transmission/run
|
[ $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
|
fi
|
||||||
bashio::log.info "UI selected : $CUSTOMUI"
|
bashio::log.info "UI selected : $CUSTOMUI"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user