#!/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