fix/match_collector: make sure we have permission to write in /cdragon
This commit is contained in:
9
match_collector/docker-entrypoint.sh
Normal file
9
match_collector/docker-entrypoint.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Fix permissions on the cdragon cache directory if it exists
|
||||
if [ -d "/cdragon" ]; then
|
||||
# Ensure the node user owns the cdragon directory
|
||||
chown -R node:node /cdragon 2>/dev/null || true
|
||||
fi
|
||||
|
||||
# Execute the main command as the node user
|
||||
exec su-exec node "$@"
|
||||
Reference in New Issue
Block a user