Refactor CMD in service-filebrowser.json to remove unnecessary directory change

This commit is contained in:
gyurix
2025-08-04 15:20:57 +02:00
parent 90e071dc3a
commit ea7bec4dfc

View File

@@ -61,7 +61,7 @@
"DEPEND": [],
"START_ON_BOOT": "false",
"ENTRYPOINT": "sh",
"CMD": "cd /home/user ;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.db ]; then /bin/filebrowser config init && /bin/filebrowser users add \"$FILEBROWSER_USER\" \"$FILEBROWSER_PASS\" --perm.admin && /bin/filebrowser ; else /bin/filebrowser ; fi",
"PRE_START": "null",
"POST_START": [
"firewall-filebrowser",