mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-09 15:31:00 +02:00
Github bot : script beautyshied
This commit is contained in:
@@ -54,14 +54,14 @@ esac
|
|||||||
###########
|
###########
|
||||||
|
|
||||||
if bashio::config.true "ingress_disabled"; then
|
if bashio::config.true "ingress_disabled"; then
|
||||||
bashio::log.warning "Ingress is disabled. You'll need to connect using ip:port"
|
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 "s|$(bashio::addon.ingress_entry)||g" /etc/nginx/servers/ssl.conf
|
||||||
sed -i "7,10d" /etc/nginx/servers/ssl.conf
|
sed -i "7,10d" /etc/nginx/servers/ssl.conf
|
||||||
rm /etc/nginx/servers/ingress.conf
|
rm /etc/nginx/servers/ingress.conf
|
||||||
else
|
else
|
||||||
PHOTOPRISM_SITE_URL="$(bashio::addon.ingress_entry)/"
|
PHOTOPRISM_SITE_URL="$(bashio::addon.ingress_entry)/"
|
||||||
export PHOTOPRISM_SITE_URL
|
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"
|
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
|
fi
|
||||||
|
|
||||||
##############
|
##############
|
||||||
|
|||||||
@@ -39,8 +39,8 @@ fi
|
|||||||
# Set configuration
|
# Set configuration
|
||||||
if bashio::config.has_value 'SavePath'; then
|
if bashio::config.has_value 'SavePath'; then
|
||||||
|
|
||||||
# Set variable
|
# Set variable
|
||||||
DOWNLOADS=$(bashio::config 'SavePath')
|
DOWNLOADS=$(bashio::config 'SavePath')
|
||||||
|
|
||||||
# Replace save path
|
# Replace save path
|
||||||
CURRENTSAVEPATH=$(sed -n '/Downloads\\\SavePath/p' qBittorrent.conf)
|
CURRENTSAVEPATH=$(sed -n '/Downloads\\\SavePath/p' qBittorrent.conf)
|
||||||
|
|||||||
Reference in New Issue
Block a user