Skip to content
Snippets Groups Projects
Commit 2c9fada1 authored by Michael Boniface's avatar Michael Boniface
Browse files

Update install-neo4j.sh

parent 4aafda37
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,8 @@ echo "neo4j ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers ...@@ -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. # 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 # 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..." # 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 "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" 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" ...@@ -48,6 +50,7 @@ su neo4j -c "sudo systemctl enable neo4j"
su neo4j -c "sudo systemctl start neo4j" su neo4j -c "sudo systemctl start neo4j"
### waiting for the service to start ### waiting for the service to start
echo "----->Waiting for neo4j service to start"
end="$((SECONDS+60))" end="$((SECONDS+60))"
while true; do while true; do
nc -w 2 localhost 7687 && break nc -w 2 localhost 7687 && break
...@@ -55,6 +58,7 @@ while true; do ...@@ -55,6 +58,7 @@ while true; do
sleep 1 sleep 1
done done
echo "----->Installing python libraries"
apt-get -y install python3 python3-pip python3-setuptools apt-get -y install python3 python3-pip python3-setuptools
update-alternatives --install /usr/bin/python python /usr/bin/python3 10 update-alternatives --install /usr/bin/python python /usr/bin/python3 10
apt-get update apt-get update
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment