Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- cd /var/lib/neo4j
- # set temp password
- TEMP_PASSWORD=temp-neo4j-password
- bin/neo4j-admin set-initial-password $TEMP_PASSWORD
- # allow all APOC procedures to be available to all users
- echo "dbms.security.procedures.unrestricted=apoc.*" >> conf/neo4j.conf
- # start server and wait for it to kick in
- bin/neo4j start && ./neo4j-wait.sh
- # import data
- bin/cypher-shell -u neo4j -p $TEMP_PASSWORD < import.cypher
- # stop server and clean temp password
- bin/neo4j stop && rm -rf data/dbms/
- # now start for real!
- /docker-entrypoint.sh neo4j
Add Comment
Please, Sign In to add comment