mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-12 02:19:54 +02:00
25 lines
649 B
Bash
Executable File
25 lines
649 B
Bash
Executable File
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
|
|
###############
|
|
# Start nginx #
|
|
###############
|
|
|
|
# Set UrlBase
|
|
#if ! grep -q "hassioautobrr" /config/addons_config/autobrr/config.toml; then
|
|
# bashio::log.warning "BaseUrl not set properly, restarting"
|
|
# sed -i "/baseUrl/d" /config/addons_config/autobrr/config.toml
|
|
# sed -i "/# Base url/a baseUrl = \"\/hassioautobrr\/\"" /config/addons_config/autobrr/config.toml
|
|
# bashio::addon.restart
|
|
#fi
|
|
|
|
#bashio::log.info "Starting NGinx..."
|
|
#nginx & true
|
|
|
|
#############
|
|
# Start app #
|
|
#############
|
|
|
|
bashio::log.info "Starting app"
|
|
exec /usr/local/bin/autobrr --config /config/addons_config/autobrr
|