readingtracker/entrypoint.sh

8 lines
181 B
Bash

#!/bin/sh
# Fix permissions for volume-mounted data directory
chown -R node:node /app/data
chmod 755 /app/data
# Switch to node user and execute the command
exec su-exec node "$@"