/addons_config/

This commit is contained in:
Alexandre
2021-12-29 13:23:54 +01:00
parent b1842412dd
commit 03fc02af43
6 changed files with 23 additions and 23 deletions

View File

@@ -16,7 +16,7 @@ if [ $port > 1 ]; then
sed -i "s|%%port%%|$port|g" /etc/nginx/servers/ingress.conf
sed -i "s|%%interface%%|$(bashio::addon.ip_address)|g" /etc/nginx/servers/ingress.conf
# Removebaseurl
jq '.reverseProxyPrefix = ""' /config/addon_config/ubooquity/preferences.json | sponge /config/addon_config/ubooquity/preferences.json
jq '.reverseProxyPrefix = ""' /config/addons_config/ubooquity/preferences.json | sponge /config/addons_config/ubooquity/preferences.json
# Log
bashio::log.info "Ingress enabled"
else

View File

@@ -3,9 +3,9 @@
###########
# FOLDERS #
###########
FILES=$(jq ".filesPaths[0].pathString" /config/addon_config/ubooquity/preferences.json)
COMICS=$(jq ".comicsPaths[0].pathString" /config/addon_config/ubooquity/preferences.json)
BOOKS=$(jq ".booksPaths[0].pathString" /config/addon_config/ubooquity/preferences.json)
FILES=$(jq ".filesPaths[0].pathString" /config/addons_config/ubooquity/preferences.json)
COMICS=$(jq ".comicsPaths[0].pathString" /config/addons_config/ubooquity/preferences.json)
BOOKS=$(jq ".booksPaths[0].pathString" /config/addons_config/ubooquity/preferences.json)
mkdir -p $FILES $COMICS $BOOKS /config/addon_config/ubooquity || true
chown -R abc:abc $FILES $COMICS $BOOKS /config/addon_config/ubooquity || true
mkdir -p $FILES $COMICS $BOOKS /config/addons_config/ubooquity || true
chown -R abc:abc $FILES $COMICS $BOOKS /config/addons_config/ubooquity || true

View File

@@ -13,13 +13,13 @@ if bashio::config.has_value 'theme'; then
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 -o -q /data/release.zip -d /config/addon_config/ubooquity/themes/
unzip -o -q /data/release.zip -d /config/addons_config/ubooquity/themes/
;;
"plextheme-master")
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/addon_config/ubooquity/themes/
# && mv /config/addon_config/ubooquity/themes/plextheme-master/ /config/addon_config/ubooquity/themes/
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
@@ -28,6 +28,6 @@ if bashio::config.has_value 'theme'; then
rm /data/release.zip || true
### Set preference
jq --arg variable $CUSTOMUI '.theme = $variable' /config/addon_config/ubooquity/preferences.json | sponge /config/addon_config/ubooquity/preferences.json
jq --arg variable $CUSTOMUI '.theme = $variable' /config/addons_config/ubooquity/preferences.json | sponge /config/addons_config/ubooquity/preferences.json
fi