cc-rag / start.sh
MATSUMURA Taishi
fix(neo4j): move data dirs from /data (S3 FUSE) to /tmp (local)
a8e89f8
Raw
History Blame Contribute Delete
377 Bytes
#!/usr/bin/env bash
set -e
# Create Neo4j data dirs under /data (HF Spaces persistent storage).
# Try chown to neo4j user (works if root); fall back to chmod 777.
mkdir -p /tmp/neo4j/data /tmp/neo4j/logs /tmp/neo4j/import /tmp/neo4j/plugins
chown -R neo4j:neo4j /tmp/neo4j 2>/dev/null || chmod -R 777 /tmp/neo4j
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/ccrag.conf