diff --git a/filebrowser/rootfs/etc/cont-init.d/99-run.sh b/filebrowser/rootfs/etc/cont-init.d/99-run.sh index 2192e7d39..2a613e8f2 100755 --- a/filebrowser/rootfs/etc/cont-init.d/99-run.sh +++ b/filebrowser/rootfs/etc/cont-init.d/99-run.sh @@ -69,7 +69,7 @@ NOAUTH="" if bashio::config.true 'NoAuth'; then if ! bashio::fs.file_exists "/data/noauth"; then 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 NOAUTH="--noauth" bashio::log.warning "Auth method change, database reset" @@ -78,7 +78,7 @@ if bashio::config.true 'NoAuth'; then else if ! bashio::fs.file_exists "/data/auth"; then 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 bashio::log.warning "Auth method change, database reset" fi @@ -97,7 +97,7 @@ bashio::log.info "Starting..." rm /.filebrowser.json # 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::log.info "Started !" exec nginx