mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-25 08:46:03 +02:00
Allow custom ui
https://github.com/alexbelgium/hassio-addons/issues/527
This commit is contained in:
@@ -137,7 +137,7 @@ mkdir -p /webui
|
|||||||
chown abc:abc /webui
|
chown abc:abc /webui
|
||||||
|
|
||||||
CUSTOMUI=$(bashio::config 'customUI')
|
CUSTOMUI=$(bashio::config 'customUI')
|
||||||
if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ]; then
|
if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$CUSTOMUI" = custom ]; then
|
||||||
### Variables
|
### Variables
|
||||||
bashio::log.info "Alternate UI enabled : $CUSTOMUI. If webui don't work, disable this option"
|
bashio::log.info "Alternate UI enabled : $CUSTOMUI. If webui don't work, disable this option"
|
||||||
|
|
||||||
@@ -163,6 +163,7 @@ if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ]; then
|
|||||||
rm /webui/*.zip
|
rm /webui/*.zip
|
||||||
CUSTOMUIDIR="$(dirname "$(find /webui/"$CUSTOMUI" -iname "public" -type d)")"
|
CUSTOMUIDIR="$(dirname "$(find /webui/"$CUSTOMUI" -iname "public" -type d)")"
|
||||||
# Set qbittorrent
|
# Set qbittorrent
|
||||||
|
if [[
|
||||||
sed -i "$LINE i\WebUI\\\AlternativeUIEnabled=true" /config/addons_config/qBittorrent/qBittorrent.conf
|
sed -i "$LINE i\WebUI\\\AlternativeUIEnabled=true" /config/addons_config/qBittorrent/qBittorrent.conf
|
||||||
sed -i "$LINE i\WebUI\\\RootFolder=$CUSTOMUIDIR" /config/addons_config/qBittorrent/qBittorrent.conf
|
sed -i "$LINE i\WebUI\\\RootFolder=$CUSTOMUIDIR" /config/addons_config/qBittorrent/qBittorrent.conf
|
||||||
# Set nginx
|
# Set nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user