Created
July 19, 2019 14:42
-
-
Save amoe/9414cd60084f1c97b2f3b54c0375c3bc to your computer and use it in GitHub Desktop.
Neo4j Java 11 patch
This file contains hidden or 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
diff -Naur neo4j-community-3.4.6.orig/bin/neo4j neo4j-community-3.4.6/bin/neo4j | |
--- neo4j-community-3.4.6.orig/bin/neo4j 2018-08-13 10:43:20.000000000 +0100 | |
+++ neo4j-community-3.4.6/bin/neo4j 2019-07-19 15:20:21.175879490 +0100 | |
@@ -84,15 +84,19 @@ | |
[[ -n "${JAVA_MEMORY_OPTS:-}" ]] && version_command+=("${JAVA_MEMORY_OPTS[@]}") | |
JAVA_VERSION=$("${version_command[@]}" 2>&1 | awk -F '"' '/version/ {print $2}') | |
- if [[ "${JAVA_VERSION}" < "1.8" ]]; then | |
- echo "ERROR! Neo4j cannot be started using java version ${JAVA_VERSION}. " | |
- _show_java_help | |
- exit 1 | |
- fi | |
- | |
- if ! ("${version_command[@]}" 2>&1 | egrep -q "(Java HotSpot\\(TM\\)|OpenJDK|IBM) (64-Bit Server|Server|Client|J9) VM"); then | |
- echo "WARNING! You are using an unsupported Java runtime. " | |
- _show_java_help | |
+ if [[ $JAVA_VERSION = "1."* ]]; then | |
+ if [[ "${JAVA_VERSION}" < "1.8" ]]; then | |
+ echo "ERROR! Neo4j cannot be started using java version ${JAVA_VERSION}. " | |
+ _show_java_help | |
+ exit 1 | |
+ fi | |
+ if ! ("${version_command[@]}" 2>&1 | egrep -q "(Java HotSpot\\(TM\\)|OpenJDK|IBM) (64-Bit Server|Server|Client|J9) VM"); then | |
+ echo "WARNING! You are using an unsupported Java runtime. " | |
+ _show_java_help | |
+ fi | |
+ else | |
+ echo "WARNING! You are using an unsupported Java runtime. " | |
+ _show_java_help | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment