mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-05 11:24:53 +01:00
Allow path to be set, default joal
This commit is contained in:
@@ -60,6 +60,7 @@ mkdir -p /var/log/nginx && touch /var/log/nginx/error.log
|
|||||||
|
|
||||||
declare TOKEN
|
declare TOKEN
|
||||||
TOKEN=$(bashio::config 'secret_token')
|
TOKEN=$(bashio::config 'secret_token')
|
||||||
|
PATH="${bashio::config 'path':-joal}"
|
||||||
VERBOSE=$(bashio::config 'verbose') || true
|
VERBOSE=$(bashio::config 'verbose') || true
|
||||||
|
|
||||||
# check password change
|
# check password change
|
||||||
@@ -90,9 +91,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="joal" --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=$PATH --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="joal" --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=$PATH --joal.ui.secret-token=$TOKEN >/dev/null
|
||||||
fi \
|
fi \
|
||||||
& bashio::log.info "Joal started with secret token $TOKEN"
|
& bashio::log.info "Joal started with secret token $TOKEN"
|
||||||
# Wait for transmission to become available
|
# Wait for transmission to become available
|
||||||
|
|||||||
Reference in New Issue
Block a user