mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Github bot : script beautyshied
This commit is contained in:
@@ -54,14 +54,14 @@ esac
|
||||
###########
|
||||
|
||||
if bashio::config.true "ingress_disabled"; then
|
||||
bashio::log.warning "Ingress is disabled. You'll need to connect using ip:port"
|
||||
sed -i "s|$(bashio::addon.ingress_entry)||g" /etc/nginx/servers/ssl.conf
|
||||
sed -i "7,10d" /etc/nginx/servers/ssl.conf
|
||||
rm /etc/nginx/servers/ingress.conf
|
||||
bashio::log.warning "Ingress is disabled. You'll need to connect using ip:port"
|
||||
sed -i "s|$(bashio::addon.ingress_entry)||g" /etc/nginx/servers/ssl.conf
|
||||
sed -i "7,10d" /etc/nginx/servers/ssl.conf
|
||||
rm /etc/nginx/servers/ingress.conf
|
||||
else
|
||||
PHOTOPRISM_SITE_URL="$(bashio::addon.ingress_entry)/"
|
||||
export PHOTOPRISM_SITE_URL
|
||||
bashio::log.warning "Ingress is enabled. To connect, you must add $PHOTOPRISM_SITE_URL to the end of your access point. Example : http://my-url:8123$PHOTOPRISM_SITE_URL"
|
||||
PHOTOPRISM_SITE_URL="$(bashio::addon.ingress_entry)/"
|
||||
export PHOTOPRISM_SITE_URL
|
||||
bashio::log.warning "Ingress is enabled. To connect, you must add $PHOTOPRISM_SITE_URL to the end of your access point. Example : http://my-url:8123$PHOTOPRISM_SITE_URL"
|
||||
fi
|
||||
|
||||
##############
|
||||
|
||||
@@ -39,8 +39,8 @@ fi
|
||||
# Set configuration
|
||||
if bashio::config.has_value 'SavePath'; then
|
||||
|
||||
# Set variable
|
||||
DOWNLOADS=$(bashio::config 'SavePath')
|
||||
# Set variable
|
||||
DOWNLOADS=$(bashio::config 'SavePath')
|
||||
|
||||
# Replace save path
|
||||
CURRENTSAVEPATH=$(sed -n '/Downloads\\\SavePath/p' qBittorrent.conf)
|
||||
|
||||
Reference in New Issue
Block a user