fix: add user permissions when the scripts is launched
This commit is contained in:
1 parent
e18c6a1c54
commit
61418c6f77
2 files changed
+19
-3
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user