--- bin/neo4j-admin.orig	2023-06-26 13:14:57 UTC
+++ bin/neo4j-admin
@@ -33,7 +33,7 @@ PRGDIR=`dirname "$PRG"`
 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=
@@ -125,4 +125,4 @@ exec "$JAVACMD" -Xmx128m \
   -Dapp.home="$BASEDIR" \
   -Dbasedir="$BASEDIR" \
   org.neo4j.server.startup.Neo4jAdminBoot \
-  "$@"
\ No newline at end of file
+  "$@"
