#!/bin/bash # Wait for Neo4j to start echo "Waiting for Neo4j..." while ! curl -s localhost:7474; do sleep 1 done echo "Neo4j started, running initialization scripts..." # Run your initialization Cypher scripts echo "Running init_neo4j..." cat /app/scripts/init_neo4j.cypher | cypher-shell -u neo4j -p password echo "Running load_data..." cat /app/scripts/load_data.cypher | cypher-shell -u neo4j -p password echo "Completed initialization scripts!"