Update 93-custom_webUI

This commit is contained in:
Alexandre
2021-02-23 21:56:17 +01:00
committed by GitHub
parent 6b4b5bda5b
commit 8f4f9d84ad

View File

@@ -4,9 +4,9 @@
# Alternate UI # # Alternate UI #
################ ################
if bashio::config.has_value 'customUI'; then if bashio::config.has_value 'theme'; then
### Variables ### Variables
CUSTOMUI=$(bashio::config 'customUI') CUSTOMUI=$(bashio::config 'theme')
bashio::log.info "Alternate theme enabled : $CUSTOMUI. If webui don't work, disable this option" bashio::log.info "Alternate theme enabled : $CUSTOMUI. If webui don't work, disable this option"
### Download WebUI ### Download WebUI
@@ -27,6 +27,7 @@ if bashio::config.has_value 'customUI'; then
### Clean files ### Clean files
rm /data/release.zip || true rm /data/release.zip || true
else ### Set preference
rm -rfv /config/ubooquity/themes/* && bashio::log.info "Custom themes files removed" || true jq --arg variable $CUSTOMUI '.theme = $variable' /config/ubooquity/preferences.json | sponge /config/ubooquity/preferences.json
fi fi