diff --git a/scripts/clmc-service/install-neo4j.sh b/scripts/clmc-service/install-neo4j.sh index 29b7398c653c57f92cd256a2142ad036ea7310b2..83d0cbddc15822640a7453a25a469b93eb524806 100755 --- a/scripts/clmc-service/install-neo4j.sh +++ b/scripts/clmc-service/install-neo4j.sh @@ -35,6 +35,8 @@ echo "neo4j ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers # the following set of commands install everything as neo4j with some run as sudo. # Expected to only have to run the install as neo4j however it does not work unless all of these are # run as neo4j. hence the weird su neo4j -c "sudo..." + +echo "----->Installing neo4j" su neo4j -c "sudo apt-get install neo4j=1:3.4.0 -y" su neo4j -c "sed -i s/\#dbms.connectors.default_listen_address=0.0.0.0/dbms.connectors.default_listen_address=0.0.0.0/g /etc/neo4j/neo4j.conf" @@ -48,6 +50,7 @@ su neo4j -c "sudo systemctl enable neo4j" su neo4j -c "sudo systemctl start neo4j" ### waiting for the service to start +echo "----->Waiting for neo4j service to start" end="$((SECONDS+60))" while true; do nc -w 2 localhost 7687 && break @@ -55,6 +58,7 @@ while true; do sleep 1 done +echo "----->Installing python libraries" apt-get -y install python3 python3-pip python3-setuptools update-alternatives --install /usr/bin/python python /usr/bin/python3 10 apt-get update