Spaces:
Sleeping
Sleeping
Upload start.sh with huggingface_hub
Browse files
start.sh
CHANGED
|
@@ -23,7 +23,8 @@ find "${N8N_DATA}" -type d -exec chmod 0700 {} +
|
|
| 23 |
find "${N8N_DATA}" -type f -exec chmod 0600 {} +
|
| 24 |
|
| 25 |
# ---------- Drop Privileges & Launch ------------------------------------------
|
| 26 |
-
echo "▸ [start.sh] Dropping to user 1000, starting n8n on port ${N8N_PORT:-7860} …"
|
| 27 |
|
| 28 |
# su-exec replaces the current process (no intermediate shell)
|
| 29 |
-
|
|
|
|
|
|
| 23 |
find "${N8N_DATA}" -type f -exec chmod 0600 {} +
|
| 24 |
|
| 25 |
# ---------- Drop Privileges & Launch ------------------------------------------
|
| 26 |
+
echo "▸ [start.sh] Dropping to user node (1000), starting n8n on port ${N8N_PORT:-7860} …"
|
| 27 |
|
| 28 |
# su-exec replaces the current process (no intermediate shell)
|
| 29 |
+
# Use the named "node" user that ships with node:22-alpine (uid/gid 1000)
|
| 30 |
+
exec su-exec node n8n start
|