mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-17 06:11:49 +02:00
lint
This commit is contained in:
@@ -5,14 +5,14 @@
|
||||
# INGRESS SETTING #
|
||||
###################
|
||||
declare port
|
||||
declare certfile
|
||||
declare ingress_interface
|
||||
declare ingress_port
|
||||
declare keyfile
|
||||
#declare certfile
|
||||
#declare ingress_interface
|
||||
#declare ingress_port
|
||||
#declare keyfile
|
||||
|
||||
# General values
|
||||
port=$(bashio::addon.ingress_port)
|
||||
if [ $port ] >1; then
|
||||
if [ "$port" ] >1; then
|
||||
# Adapt nginx
|
||||
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
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
###############
|
||||
declare port
|
||||
declare certfile
|
||||
declare ingress_interface
|
||||
declare ingress_port
|
||||
#declare ingress_interface
|
||||
#declare ingress_port
|
||||
declare keyfile
|
||||
|
||||
# General values
|
||||
|
||||
@@ -8,5 +8,5 @@ FILES=$(jq ".filesPaths[0].pathString" /config/addons_config/ubooquity/preferenc
|
||||
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/addons_config/ubooquity || true
|
||||
chown -R abc:abc $FILES $COMICS $BOOKS /config/addons_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
|
||||
|
||||
@@ -11,7 +11,7 @@ if bashio::config.has_value 'theme'; then
|
||||
bashio::log.info "Alternate theme enabled : $CUSTOMUI. If webui don't work, disable this option"
|
||||
|
||||
### Download WebUI
|
||||
case $CUSTOMUI in
|
||||
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/addons_config/ubooquity/themes/
|
||||
@@ -29,6 +29,6 @@ if bashio::config.has_value 'theme'; then
|
||||
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
|
||||
jq --arg variable "$CUSTOMUI" '.theme = $variable' /config/addons_config/ubooquity/preferences.json | sponge /config/addons_config/ubooquity/preferences.json
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user