mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-07 12:24:52 +01:00
Correct path in scripts
https://github.com/alexbelgium/hassio-addons/issues/1096#issuecomment-1826349482
This commit is contained in:
@@ -69,7 +69,7 @@ NOAUTH=""
|
|||||||
if bashio::config.true 'NoAuth'; then
|
if bashio::config.true 'NoAuth'; then
|
||||||
if ! bashio::fs.file_exists "/data/noauth"; then
|
if ! bashio::fs.file_exists "/data/noauth"; then
|
||||||
rm /data/auth &>/dev/null || true
|
rm /data/auth &>/dev/null || true
|
||||||
rm /config/addons_config/filebrowser/filebrowser.dB &>/dev/null || true
|
rm /config/filebrowser.dB &>/dev/null || true
|
||||||
touch /data/noauth
|
touch /data/noauth
|
||||||
NOAUTH="--noauth"
|
NOAUTH="--noauth"
|
||||||
bashio::log.warning "Auth method change, database reset"
|
bashio::log.warning "Auth method change, database reset"
|
||||||
@@ -78,7 +78,7 @@ if bashio::config.true 'NoAuth'; then
|
|||||||
else
|
else
|
||||||
if ! bashio::fs.file_exists "/data/auth"; then
|
if ! bashio::fs.file_exists "/data/auth"; then
|
||||||
rm /data/noauth &>/dev/null || true
|
rm /data/noauth &>/dev/null || true
|
||||||
rm /config/addons_config/filebrowser/filebrowser.dB &>/dev/null || true
|
rm /config/filebrowser.dB &>/dev/null || true
|
||||||
touch /data/auth
|
touch /data/auth
|
||||||
bashio::log.warning "Auth method change, database reset"
|
bashio::log.warning "Auth method change, database reset"
|
||||||
fi
|
fi
|
||||||
@@ -97,7 +97,7 @@ bashio::log.info "Starting..."
|
|||||||
rm /.filebrowser.json
|
rm /.filebrowser.json
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
/./filebrowser --disable-preview-resize --disable-type-detection-by-header --cache-dir=".\cache" $CERTFILE $KEYFILE --root="$BASE_FOLDER" --address=0.0.0.0 --port=8080 --database=/config/addons_config/filebrowser/filebrowser.dB "$NOAUTH" &
|
/./filebrowser --disable-preview-resize --disable-type-detection-by-header --cache-dir=".\cache" $CERTFILE $KEYFILE --root="$BASE_FOLDER" --address=0.0.0.0 --port=8080 --database=/config/filebrowser.dB "$NOAUTH" &
|
||||||
bashio::net.wait_for 8080 localhost 900 || true
|
bashio::net.wait_for 8080 localhost 900 || true
|
||||||
bashio::log.info "Started !"
|
bashio::log.info "Started !"
|
||||||
exec nginx
|
exec nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user