aboutsummaryrefslogtreecommitdiff
path: root/databases/neo4j/files/patch-bin_neo4j
blob: 5919c0bb845ae78dbe44219e9817d4e78a1a5d96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- bin/neo4j.orig	2022-05-19 10:56:30 UTC
+++ bin/neo4j
@@ -33,7 +33,7 @@ while [ -h "$PRG" ]; do
 done
 
 PRGDIR=`dirname "$PRG"`
-BASEDIR=`cd "$PRGDIR/.." >/dev/null; pwd`
+BASEDIR=%%PREFIX%%/neo4j
 
 # Reset the REPO variable. If you need to influence this use the environment setup file.
 REPO=
@@ -116,6 +116,9 @@ if $cygwin; then
   [ -n "$BASEDIR" ] && BASEDIR=`cygpath --path --windows "$BASEDIR"`
   [ -n "$REPO" ] && REPO=`cygpath --path --windows "$REPO"`
 fi
+
+NEO4J_CONF=%%NEO4J_CONFDIR%%
+export NEO4J_CONF
 
 exec "$JAVACMD" -Xmx128m \
   -classpath "$CLASSPATH" \
@@ -125,4 +128,4 @@ exec "$JAVACMD" -Xmx128m \
   -Dapp.home="$BASEDIR" \
   -Dbasedir="$BASEDIR" \
   org.neo4j.server.startup.Neo4jCommand \
-  "$@"
\ No newline at end of file
+  "$@"