mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-19 06:20:12 +02:00
Add support for following external symlinks in script
https://github.com/alexbelgium/hassio-addons/issues/2882
This commit is contained in:
@@ -105,6 +105,12 @@ else
|
|||||||
DISABLE_THUMBNAILS=""
|
DISABLE_THUMBNAILS=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Disable thumbnails
|
||||||
|
if bashio::config.true 'follow_external_symlinks'; then
|
||||||
|
FOLLOW_SYMLINKS="--followExternalSymlinks"
|
||||||
|
else
|
||||||
|
FOLLOW_SYMLINKS=""
|
||||||
|
fi
|
||||||
# Remove configuration file
|
# Remove configuration file
|
||||||
if [ -f /.filebrowser.json ]; then
|
if [ -f /.filebrowser.json ]; then
|
||||||
rm /.filebrowser.json
|
rm /.filebrowser.json
|
||||||
@@ -113,7 +119,7 @@ fi
|
|||||||
bashio::log.info "Starting..."
|
bashio::log.info "Starting..."
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
/./bin/filebrowser --disablePreviewResize --disableTypeDetectionByHeader --cacheDir="/cache" $CERTFILE $KEYFILE --root="$BASE_FOLDER" --address=0.0.0.0 --port=8080 --database=/config/filebrowser.dB ${NOAUTH:+$NOAUTH} ${DISABLE_THUMBNAILS:+$DISABLE_THUMBNAILS} &
|
/./bin/filebrowser --disablePreviewResize --disableTypeDetectionByHeader --cacheDir="/cache" $CERTFILE $KEYFILE --root="$BASE_FOLDER" --address=0.0.0.0 --port=8080 --database=/config/filebrowser.dB ${FOLLOW_SYMLINKS:+$FOLLOW_SYMLINKS} ${NOAUTH:+$NOAUTH} ${DISABLE_THUMBNAILS:+$DISABLE_THUMBNAILS} &
|
||||||
bashio::net.wait_for 8080 localhost 900 || true
|
bashio::net.wait_for 8080 localhost 900 || true
|
||||||
bashio::log.info "Started !"
|
bashio::log.info "Started !"
|
||||||
nginx || bashio::log.fatal "Nginx failed"
|
nginx || bashio::log.fatal "Nginx failed"
|
||||||
|
|||||||
Reference in New Issue
Block a user