mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: log volume permission errors instead of swallowing them
Previously chown errors were silently discarded. Now logs a warning so users can diagnose permission issues with Docker volume mounts.
This commit is contained in:
@@ -4,7 +4,8 @@ set -e
|
||||
# Fix ownership of mounted volumes so the non-root stirling user can write.
|
||||
# This runs as root, fixes permissions, then drops to stirling via gosu.
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
chown -R stirling:stirling /data /tmp/workspace 2>/dev/null || true
|
||||
chown -R stirling:stirling /data /tmp/workspace 2>&1 || \
|
||||
echo "WARNING: Could not fix volume permissions. If processing fails, check your volume mount permissions." >&2
|
||||
exec gosu stirling "$@"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user