mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-17 01:48:16 +01:00
Merge pull request #8 from alexbelgium/alexbelgium-custom-themes
custom themes
This commit is contained in:
@@ -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
|
||||
- Addition of possibility to mount smb
|
||||
|
||||
@@ -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",
|
||||
@@ -47,6 +47,7 @@
|
||||
"PUID": "int",
|
||||
"PGID": "int",
|
||||
"maxmem": "int",
|
||||
"customUI": "list(|comixology2)?",
|
||||
"networkdisks": "str?",
|
||||
"cifsusername": "str?",
|
||||
"cifspassword": "str?",
|
||||
|
||||
32
ubooquity/rootfs/etc/cont-init.d/93-custom_webUI
Normal file
32
ubooquity/rootfs/etc/cont-init.d/93-custom_webUI
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user