From 92fbb27e801031c51ccaace588d08b4bf93d7391 Mon Sep 17 00:00:00 2001 From: gyurix Date: Mon, 4 Aug 2025 15:39:14 +0200 Subject: [PATCH 1/2] Add required fields and validation info for filebrowser credentials --- filebrowser/template.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/filebrowser/template.json b/filebrowser/template.json index 318179c..d8ef1d8 100644 --- a/filebrowser/template.json +++ b/filebrowser/template.json @@ -13,12 +13,15 @@ { "description": "Username", "key": "FILEBROWSER_USER", - "value": "" + "value": "", + "required": "true" }, { "description": "Password", "key": "FILEBROWSER_PASS", + "info": "The password minimum length is 12 characters.", "value": "", + "required": "true", "type": "password" } ] From 9bf8622848c24fabefc8eb224aed81c368018ecf Mon Sep 17 00:00:00 2001 From: gyurix Date: Mon, 4 Aug 2025 18:16:43 +0200 Subject: [PATCH 2/2] Update CMD in service-filebrowser.json to improve initialization logic and correct database path --- filebrowser/service-filebrowser.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filebrowser/service-filebrowser.json b/filebrowser/service-filebrowser.json index c1f3a59..ff70869 100644 --- a/filebrowser/service-filebrowser.json +++ b/filebrowser/service-filebrowser.json @@ -57,11 +57,11 @@ "ENV_FILES": [ "/etc/user/secret/filebrowser/filebrowser.json" ], - "EXTRA": "--restart always --workdir=/home/user", + "EXTRA": "--restart always", "DEPEND": [], "START_ON_BOOT": "false", "ENTRYPOINT": "sh", - "CMD": "if [ ! -f database.db ]; then /bin/filebrowser config init && /bin/filebrowser users add \"$FILEBROWSER_USER\" \"$FILEBROWSER_PASS\" --perm.admin && /bin/filebrowser ; else /bin/filebrowser ; fi", + "CMD": "if [ ! -f /database/filebrowser.db ]; then cd /database ; /bin/filebrowser config init && /bin/filebrowser users add \"$FILEBROWSER_USER\" \"$FILEBROWSER_PASS\" --perm.admin && /init.sh; else /init.sh ; fi", "PRE_START": "null", "POST_START": [ "firewall-filebrowser",