From 4476f62c7749a6990bedd35cfbe1b68ea6705d3c Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 3 Jun 2026 10:38:06 +0200 Subject: [PATCH] Update 99-run.sh --- filebrowser_quantum/rootfs/etc/cont-init.d/99-run.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/filebrowser_quantum/rootfs/etc/cont-init.d/99-run.sh b/filebrowser_quantum/rootfs/etc/cont-init.d/99-run.sh index 4cf574940b..637f0cdf55 100755 --- a/filebrowser_quantum/rootfs/etc/cont-init.d/99-run.sh +++ b/filebrowser_quantum/rootfs/etc/cont-init.d/99-run.sh @@ -65,10 +65,14 @@ mkdir -p /var/log/nginx && touch /var/log/nginx/error.log # FILEBROWSER CONFIGURATION # ############################ -CONFIG_PATH="/config/filebrowser_quantum.yaml" mkdir -p /config /cache -if [ !-f "$CONFIG_PATH" ]; then +# Add config if not existing +if [ !-f "$FILEBROWSER_CONFIG" ]; then + cp /home/filebrowser/data/config.yaml "$FILEBROWSER_CONFIG" +fi + +if [ !-f "$FILEBROWSER_CONFIG" ]; then python3 - <<'PY' import json