From 75c257a6a89a8ab7a16654868145415a79446460 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 23 Feb 2021 20:15:01 +0100 Subject: [PATCH 1/4] Update config.json --- ubooquity/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubooquity/config.json b/ubooquity/config.json index aacad9325..c238cb105 100644 --- a/ubooquity/config.json +++ b/ubooquity/config.json @@ -1,6 +1,6 @@ { "name": "Ubooquity", - "version": "2.1.2-ls58", + "version": "2.1.2-ls58-rev2", "upstream": "2.1.2-ls58", "slug": "ubooquity", "description": "Free, lightweight and easy-to-use home server for your comics and ebooks", From 84d62bd6080f385c5f0cff93d10389419fc7467d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 23 Feb 2021 20:52:38 +0100 Subject: [PATCH 2/4] Update config.json --- ubooquity/config.json | 1 + 1 file changed, 1 insertion(+) diff --git a/ubooquity/config.json b/ubooquity/config.json index c238cb105..f3bfa9373 100644 --- a/ubooquity/config.json +++ b/ubooquity/config.json @@ -47,6 +47,7 @@ "PUID": "int", "PGID": "int", "maxmem": "int", + "customUI": "list(|comixology2)?", "networkdisks": "str?", "cifsusername": "str?", "cifspassword": "str?", 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 3/4] 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 From d37407dd0b6e18e7ae155b8c6bda79c3cb9a27de Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 23 Feb 2021 21:09:58 +0100 Subject: [PATCH 4/4] Update CHANGELOG.md --- ubooquity/CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ubooquity/CHANGELOG.md b/ubooquity/CHANGELOG.md index 2b3c06743..331c8fa0e 100644 --- a/ubooquity/CHANGELOG.md +++ b/ubooquity/CHANGELOG.md @@ -1,5 +1,6 @@ +- Allow custom themes : comixology ## 2.1.2-ls58 - Update to latest version from linuxserver/docker-ubooquity - Enables PUID/GUID options -- Addition of possibility to mount smb \ No newline at end of file +- Addition of possibility to mount smb