mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-28 11:24:04 +02:00
Update 99-run.sh
This commit is contained in:
@@ -5,10 +5,10 @@
|
|||||||
#################
|
#################
|
||||||
|
|
||||||
declare port
|
declare port
|
||||||
declare certfile
|
# declare certfile
|
||||||
declare ingress_interface
|
declare ingress_interface
|
||||||
declare ingress_port
|
declare ingress_port
|
||||||
declare keyfile
|
# declare keyfile
|
||||||
|
|
||||||
CLOUDCMD_PREFIX=$(bashio::addon.ingress_entry)
|
CLOUDCMD_PREFIX=$(bashio::addon.ingress_entry)
|
||||||
export CLOUDCMD_PREFIX
|
export CLOUDCMD_PREFIX
|
||||||
@@ -19,7 +19,7 @@ if bashio::config.true 'ssl'; then
|
|||||||
bashio::config.require.ssl
|
bashio::config.require.ssl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
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|%%protocol%%|${ADDON_PROTOCOL}|g" /etc/nginx/servers/ingress.conf
|
sed -i "s|%%protocol%%|${ADDON_PROTOCOL}|g" /etc/nginx/servers/ingress.conf
|
||||||
@@ -47,7 +47,7 @@ fi
|
|||||||
bashio::log.info "Starting..."
|
bashio::log.info "Starting..."
|
||||||
|
|
||||||
cd /
|
cd /
|
||||||
./usr/src/app/bin/cloudcmd.mjs '"'$DROPBOX_TOKEN$CUSTOMOPTIONS'"' &
|
./usr/src/app/bin/cloudcmd.mjs '"'"$DROPBOX_TOKEN""$CUSTOMOPTIONS"'"' &
|
||||||
bashio::net.wait_for 8000 localhost 900 || true
|
bashio::net.wait_for 8000 localhost 900 || true
|
||||||
bashio::log.info "Started !"
|
bashio::log.info "Started !"
|
||||||
exec nginx
|
exec nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user