mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-15 03:49:20 +02:00
Correct path
This commit is contained in:
@@ -48,12 +48,15 @@ declare certfile
|
|||||||
declare ingress_interface
|
declare ingress_interface
|
||||||
declare ingress_port
|
declare ingress_port
|
||||||
declare keyfile
|
declare keyfile
|
||||||
|
# Set path
|
||||||
|
PATH=$(bashio::config 'ui_path')
|
||||||
|
|
||||||
port=$(bashio::addon.port 80)
|
port=$(bashio::addon.port 80)
|
||||||
ingress_port=$(bashio::addon.ingress_port)
|
ingress_port=$(bashio::addon.ingress_port)
|
||||||
ingress_interface=$(bashio::addon.ip_address)
|
ingress_interface=$(bashio::addon.ip_address)
|
||||||
sed -i "s/%%port%%/${ingress_port}/g" /etc/nginx/servers/ingress.conf
|
sed -i "s/%%port%%/${ingress_port}/g" /etc/nginx/servers/ingress.conf
|
||||||
sed -i "s/%%interface%%/${ingress_interface}/g" /etc/nginx/servers/ingress.conf
|
sed -i "s/%%interface%%/${ingress_interface}/g" /etc/nginx/servers/ingress.conf
|
||||||
|
sed -i "s/%%path%%/${PATH}/g" /etc/nginx/servers/ingress.conf
|
||||||
mkdir -p /var/log/nginx && touch /var/log/nginx/error.log
|
mkdir -p /var/log/nginx && touch /var/log/nginx/error.log
|
||||||
|
|
||||||
################
|
################
|
||||||
@@ -87,9 +90,6 @@ rm /data/joal/jack-of*
|
|||||||
bashio::log.info "Joal updated"
|
bashio::log.info "Joal updated"
|
||||||
mv -f /config.json /data/joal/ || true
|
mv -f /config.json /data/joal/ || true
|
||||||
|
|
||||||
# Set path
|
|
||||||
PATH=$(bashio::config 'ui_path')
|
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# LAUNCH APPS #
|
# LAUNCH APPS #
|
||||||
###############
|
###############
|
||||||
|
|||||||
Reference in New Issue
Block a user