Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flame-clmc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flame
flame-clmc
Commits
2c9fada1
Commit
2c9fada1
authored
6 years ago
by
Michael Boniface
Browse files
Options
Downloads
Patches
Plain Diff
Update install-neo4j.sh
parent
4aafda37
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/clmc-service/install-neo4j.sh
+4
-0
4 additions, 0 deletions
scripts/clmc-service/install-neo4j.sh
with
4 additions
and
0 deletions
scripts/clmc-service/install-neo4j.sh
+
4
−
0
View file @
2c9fada1
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment