fix: add user permissions when the scripts is launched

This commit is contained in:
MasutaYunikon committed 2026-03-10 23:51:50 +01:00
1 parent e18c6a1c54
commit 61418c6f77
2 files changed
+19 -3

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
set -e
PUID=${PUID:-1000}
PGID=${PGID:-1000}
echo "[fankarr] Running as UID=${PUID} GID=${PGID}"
# Corriger les permissions du dossier data
chown -R "$PUID:$PGID" /app/data
exec gosu fankarr node dist/server/index.js