mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Update 99-run.sh
This commit is contained in:
@@ -91,13 +91,19 @@ else
|
||||
BASE_FOLDER=/
|
||||
fi
|
||||
|
||||
if bashio::config.has_value 'disable_thumbnails'; then
|
||||
DISABLE_THUMBNAILS=" --disable-thumbnails"
|
||||
else
|
||||
DISABLE_THUMBNAILS=""
|
||||
fi
|
||||
|
||||
bashio::log.info "Starting..."
|
||||
|
||||
# Remove default config
|
||||
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/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" "$DISABLE_THUMBNAILS" &
|
||||
bashio::net.wait_for 8080 localhost 900 || true
|
||||
bashio::log.info "Started !"
|
||||
exec nginx
|
||||
|
||||
Reference in New Issue
Block a user