From 1a9925771ed8d1804a928dd0d107194400f4f827 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 23 Feb 2021 21:09:04 +0100 Subject: [PATCH] Create 93-custom_webUI --- .../rootfs/etc/cont-init.d/93-custom_webUI | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 ubooquity/rootfs/etc/cont-init.d/93-custom_webUI diff --git a/ubooquity/rootfs/etc/cont-init.d/93-custom_webUI b/ubooquity/rootfs/etc/cont-init.d/93-custom_webUI new file mode 100644 index 000000000..bda081a3e --- /dev/null +++ b/ubooquity/rootfs/etc/cont-init.d/93-custom_webUI @@ -0,0 +1,32 @@ + #!/usr/bin/with-contenv bashio + +################ +# Alternate UI # +################ + +if bashio::config.has_value 'customUI'; then + ### Variables + CUSTOMUI=$(bashio::config 'customUI') + bashio::log.info "Alternate theme enabled : $CUSTOMUI. If webui don't work, disable this option" + + ### Download WebUI + case $CUSTOMUI in + "comixology2") + curl -s -S -J -L -o /data/release.zip https://github.com/scooterpsu/Comixology_Ubooquity_2/releases/download/v3.4/comixology2.zip >/dev/null \ + && unzip -q /data/release.zip -d /config/ubooquity/themes/ \ + ;; + +# case $CUSTOMUI in +# "plextheme") +# curl -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/ubooquity/themes/ \ +# ;; + + esac + + ### Clean files + rm /data/release.zip || true + +else + rm -rfv /config/ubooquity/themes/* && bashio::log.info "Custom themes files removed" || true +fi