chmod +x scripts

This commit is contained in:
Alexandre
2022-06-15 20:44:11 +02:00
parent 0047e2489f
commit 3351e5b29c
218 changed files with 0 additions and 9448 deletions

View File

@@ -1,34 +0,0 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
################
# Alternate UI #
################
if bashio::config.has_value 'theme'; then
### Variables
CUSTOMUI=$(bashio::config 'theme')
bashio::log.info "Alternate theme enabled : $CUSTOMUI. If webui don't work, disable this option"
### Download WebUI
case "$CUSTOMUI" in
"comixology2")
curl -f -s -S -J -L -o /data/release.zip https://github.com/scooterpsu/Comixology_Ubooquity_2/releases/download/v3.4/comixology2.zip >/dev/null &&
unzip -o -q /data/release.zip -d /config/addons_config/ubooquity/themes/
;;
"plextheme-master")
curl -f -s -S -J -L -o /data/release.zip https://github.com/FinalAngel/plextheme/archive/master.zip >/dev/null &&
unzip -q /data/release.zip -d /config/addons_config/ubooquity/themes/
# && mv /config/addons_config/ubooquity/themes/plextheme-master/ /config/addons_config/ubooquity/themes/
;;
esac
### Clean files
rm /data/release.zip || true
### Set preference
jq --arg variable "$CUSTOMUI" '.theme = $variable' /config/addons_config/ubooquity/preferences.json | sponge /config/addons_config/ubooquity/preferences.json
fi