#!/bin/bash source neo4j.env # into the base directory pushd $BASE_DIR echo entering "$BASE_DIR" # neo4j is downloaded... wget -O $NEO4J_FILE https://neo4j.com/artifact.php?name=$NEO4J_FILE # ...and uncompressed tar xvzf $NEO4J_FILE # need to go back momentarily to whatever directory we were... popd echo going back to the original directory # ...to copy the patch cp edit_conf.patch $BASE_DIR/$NEO4J_DIR/conf # back to the base directory... pushd $BASE_DIR # ...and now into the plugins subdirectory pushd $NEO4J_DIR/plugins # plugins are downloaded wget https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/3.5.0.1/apoc-3.5.0.1-all.jar wget -O graphaware-server-community-all-3.5.0.53.jar http://products.graphaware.com/download/framework-server-community/latest wget -O graphaware-uuid-3.5.0.53.17.jar http://products.graphaware.com/download/uuid/latest # back to the base directory... popd # ...and into the conf directory pushd $NEO4J_DIR/conf # configuration file is patched patch -p0 < edit_conf.patch # we don't need the patch anymore rm edit_conf.patch # back to the base directory... popd # ...the neo4j compressed file is removed... rm $NEO4J_FILE # ...and we go back to the initial directory popd