fix: remove database directory writable check from entrypoint script

This commit is contained in:
Raj Nandan Sharma
2025-03-08 22:26:14 +05:30
parent 81250a117a
commit dfffffb101

View File

@@ -4,12 +4,5 @@ set -e
# Automatically set PUBLIC_WHITE_LABEL based on WHITE_LABEL
export PUBLIC_WHITE_LABEL="${WHITE_LABEL}"
# Check if database directory is writable
if [ ! -w /database ]; then
echo "Warning: Database directory is not writable. Attempting to fix permissions..."
# Exit gracefully if chmod fails (we're running as non-root)
chmod -R 750 /database /uploads || echo "Could not fix permissions, may need to run container as root initially"
fi
# Replace shell with the given command (from CMD or runtime args)
exec "$@"