Spaces:
Running
Running
Download start.sh from knowledge-for-all/Trilium: direct link, hf CLI and curl.
- Browser
- Download file 329 Bytes
-
https://huggingface.co/spaces/knowledge-for-all/Trilium/resolve/main/start.sh
- Command line
-
hf download hf://spaces/knowledge-for-all/Trilium/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/knowledge-for-all/Trilium/resolve/main/start.sh
329 Bytes
| set -e | |
| DATA_DIR=/data/trilium-data | |
| mkdir -p "$DATA_DIR" | |
| chown -R 1000:1000 "$DATA_DIR" | |
| echo "=== Démarrage de Trilium Notes ===" | |
| # Le répertoire de l'application est /home/node/app | |
| # L'utilisateur node a l'UID 1000 | |
| exec su -s /bin/sh -c "cd /home/node/app && node src/main.js --port 7860 --data-dir $DATA_DIR" node |