mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02:00
update
This commit is contained in:
@@ -48,7 +48,6 @@
|
|||||||
"BASE_DOCKER_DATA_PATH": "/data/autobrr"
|
"BASE_DOCKER_DATA_PATH": "/data/autobrr"
|
||||||
},
|
},
|
||||||
"image": "ghcr.io/alexbelgium/autobrr-{arch}",
|
"image": "ghcr.io/alexbelgium/autobrr-{arch}",
|
||||||
"ingress": true,
|
|
||||||
"ingress_entry": "hassioautobrr",
|
"ingress_entry": "hassioautobrr",
|
||||||
"init": false,
|
"init": false,
|
||||||
"map": [
|
"map": [
|
||||||
@@ -86,5 +85,5 @@
|
|||||||
},
|
},
|
||||||
"slug": "autobrr",
|
"slug": "autobrr",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/autobrr",
|
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/autobrr",
|
||||||
"version": "1.9.0"
|
"version": "v1.9.0"
|
||||||
}
|
}
|
||||||
@@ -6,15 +6,15 @@
|
|||||||
###############
|
###############
|
||||||
|
|
||||||
# Set UrlBase
|
# Set UrlBase
|
||||||
if ! grep -q "hassioautobrr" /config/addons_config/autobrr/config.toml; then
|
#if ! grep -q "hassioautobrr" /config/addons_config/autobrr/config.toml; then
|
||||||
bashio::log.warning "BaseUrl not set properly, restarting"
|
# bashio::log.warning "BaseUrl not set properly, restarting"
|
||||||
sed -i "/baseUrl/d" /config/addons_config/autobrr/config.toml
|
# sed -i "/baseUrl/d" /config/addons_config/autobrr/config.toml
|
||||||
sed -i "/# Base url/a baseUrl = \"\/hassioautobrr\/\"" /config/addons_config/autobrr/config.toml
|
# sed -i "/# Base url/a baseUrl = \"\/hassioautobrr\/\"" /config/addons_config/autobrr/config.toml
|
||||||
bashio::addon.restart
|
# bashio::addon.restart
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
bashio::log.info "Starting NGinx..."
|
#bashio::log.info "Starting NGinx..."
|
||||||
nginx & true
|
#nginx & true
|
||||||
|
|
||||||
#############
|
#############
|
||||||
# Start app #
|
# Start app #
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
#!/usr/bin/execlineb -S0
|
|
||||||
# ==============================================================================
|
|
||||||
# Take down the S6 supervision tree when Nginx fails
|
|
||||||
# ==============================================================================
|
|
||||||
if { s6-test ${1} -ne 0 }
|
|
||||||
if { s6-test ${1} -ne 256 }
|
|
||||||
|
|
||||||
s6-svscanctl -t /var/run/s6/services
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
|
||||||
# shellcheck shell=bash
|
|
||||||
# ==============================================================================
|
|
||||||
|
|
||||||
# Set variables
|
|
||||||
slug=autobrr
|
|
||||||
port=7474
|
|
||||||
CONFIG_LOCATION=/config/addons_config/"$slug"/config.toml
|
|
||||||
|
|
||||||
# Wait for transmission to become available
|
|
||||||
bashio::net.wait_for "$port" localhost 900
|
|
||||||
|
|
||||||
if bashio::config.has_value 'CONFIG_LOCATION'; then
|
|
||||||
CONFIG_LOCATION="$(bashio::config 'CONFIG_LOCATION')"
|
|
||||||
# Modify if it is a base directory
|
|
||||||
if [[ "$CONFIG_LOCATION" == *.* ]]; then CONFIG_LOCATION="$(dirname $CONFIG_LOCATION)"; fi
|
|
||||||
CONFIG_LOCATION="$CONFIG_LOCATION"/config.toml
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set UrlBase
|
|
||||||
if ! grep -q "<UrlBase>/hassioautobrr</UrlBase>" "$CONFIG_LOCATION" && ! bashio::config.true "ingress_disabled"; then
|
|
||||||
bashio::log.warning "BaseUrl not set properly, restarting"
|
|
||||||
sed -i "/baseUrl/d" "$CONFIG_LOCATION"
|
|
||||||
sed -i "/# Base url/a baseUrl = \"/hassioautobrr/\"" "$CONFIG_LOCATION"
|
|
||||||
bashio::addon.restart
|
|
||||||
fi
|
|
||||||
|
|
||||||
bashio::log.info "Starting NGinx..."
|
|
||||||
exec nginx
|
|
||||||
Reference in New Issue
Block a user