mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-14 19:41:31 +02:00
Update run.sh
This commit is contained in:
@@ -49,14 +49,14 @@ declare ingress_interface
|
|||||||
declare ingress_port
|
declare ingress_port
|
||||||
declare keyfile
|
declare keyfile
|
||||||
# Set path
|
# Set path
|
||||||
PATH=$(bashio::config 'ui_path')
|
UIPATH=$(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
|
sed -i "s/%%path%%/${UIPATH}/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
|
||||||
|
|
||||||
################
|
################
|
||||||
@@ -95,9 +95,9 @@ mv -f /config.json /data/joal/ || true
|
|||||||
###############
|
###############
|
||||||
|
|
||||||
if [ $VERBOSE = true ]; then
|
if [ $VERBOSE = true ]; then
|
||||||
nohup java -jar /joal/joal.jar --joal-conf=/data/joal --spring.main.web-environment=true --server.port="8081" --joal.ui.path.prefix=${PATH} --joal.ui.secret-token=$TOKEN
|
nohup java -jar /joal/joal.jar --joal-conf=/data/joal --spring.main.web-environment=true --server.port="8081" --joal.ui.path.prefix=${UIPATH} --joal.ui.secret-token=$TOKEN
|
||||||
else
|
else
|
||||||
nohup java -jar /joal/joal.jar --joal-conf=/data/joal --spring.main.web-environment=true --server.port="8081" --joal.ui.path.prefix=${PATH} --joal.ui.secret-token=$TOKEN >/dev/null
|
nohup java -jar /joal/joal.jar --joal-conf=/data/joal --spring.main.web-environment=true --server.port="8081" --joal.ui.path.prefix=${UIPATH} --joal.ui.secret-token=$TOKEN >/dev/null
|
||||||
fi \
|
fi \
|
||||||
& bashio::log.info "Joal started with path ip/${PATH}/ui secret token $TOKEN"
|
& bashio::log.info "Joal started with path ip/${PATH}/ui secret token $TOKEN"
|
||||||
# Wait for transmission to become available
|
# Wait for transmission to become available
|
||||||
|
|||||||
Reference in New Issue
Block a user