mirror of
https://github.com/margrop/wrong-notebook.git
synced 2026-12-03 16:29:37 +08:00
17 lines
395 B
Bash
Executable File
17 lines
395 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Fix permissions for mounted volumes
|
|
# We use chown to set the owner to nextjs:nodejs (uid 1001:1001)
|
|
# This requires the container to start as root (which is default)
|
|
if [ -d "/app/prisma" ]; then
|
|
chown -R nextjs:nodejs /app/prisma
|
|
fi
|
|
|
|
if [ -d "/app/config" ]; then
|
|
chown -R nextjs:nodejs /app/config
|
|
fi
|
|
|
|
# Execute the command as nextjs user
|
|
exec su-exec nextjs "$@"
|