forked from Financial-Times/treecreeper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Financial-Times#323 from Financial-Times/matth/use…
…-curl-if-available
- Loading branch information
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
mkdir -p neo4j/{plugins,logs,data} | ||
wget -O neo4j/plugins/apoc-3.5.0.1-all.jar https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/3.5.0.1/apoc-3.5.0.1-all.jar | ||
|
||
APOC_PLUGIN_URL=https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/3.5.0.1/apoc-3.5.0.1-all.jar | ||
APOC_PLUGIN_FILENAME=neo4j/plugins/apoc-3.5.0.1-all.jar | ||
|
||
if type wget 2>/dev/null; then | ||
wget -O $APOC_PLUGIN_FILENAME $APOC_PLUGIN_URL | ||
elif type curl 2>/dev/null; then | ||
curl --output $APOC_PLUGIN_FILENAME $APOC_PLUGIN_URL | ||
fi | ||
|
||
chmod 0644 neo4j/plugins/*.jar | ||
ls -la neo4j/plugins |