Allow path to be set, default joal

This commit is contained in:
Alexandre
2021-05-13 23:08:20 +02:00
committed by GitHub
parent 029abd0c9a
commit 27f70d7dd8

View File

@@ -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