403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/databases/neo4j/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/databases/neo4j/files/patch-bin_cypher-shell
--- bin/cypher-shell.orig	2022-05-11 06:09:41 UTC
+++ bin/cypher-shell
@@ -47,6 +47,8 @@ _find_java_cmd() {
 detect_os() {
   if uname -s | grep -q Darwin; then
     DIST_OS="macosx"
+  elif uname -s | grep -q FreeBSD; then
+    DIST_OS="freebsd"
   elif [[ -e /etc/gentoo-release ]]; then
     DIST_OS="gentoo"
   else
@@ -58,6 +60,9 @@ _find_java_home() {
   [[ "${JAVA_HOME:-}" ]] && return
 
   case "${DIST_OS}" in
+    "freebsd")
+      JAVA_HOME="%%JAVA_HOME%%"
+      ;;
     "macosx")
       JAVA_HOME="$(/usr/libexec/java_home -v 1.8+)"
       ;;
@@ -78,7 +83,7 @@ build_classpath() {
 
   # Then try installation directory (prefix/bin and prefix/share/cypher-shell/lib)
   if [[ -z "${JARPATH}" ]]; then
-    APP_HOME="${APP_HOME}/../share/cypher-shell"
+    APP_HOME="${APP_HOME}/../neo4j"
     JARPATH="$(find "${APP_HOME}" -name "cypher-shell.jar" )"
   fi
 }

Youez - 2016 - github.com/yon3zu
LinuXploit