Update CMD in service-filebrowser.json to improve initialization logic and correct database path

This commit is contained in:
gyurix
2025-08-04 18:16:43 +02:00
parent 92fbb27e80
commit 9bf8622848

View File

@@ -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",