From 31478c0f18c16e036a9ef8be0a1eb880bc94058e Mon Sep 17 00:00:00 2001 From: LV-426 Date: Tue, 21 Apr 2015 13:54:52 +0300 Subject: refactoring tools/ contents to more appropriate places --- tools/utils.sh | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 tools/utils.sh (limited to 'tools/utils.sh') diff --git a/tools/utils.sh b/tools/utils.sh deleted file mode 100644 index df5e2fb6..00000000 --- a/tools/utils.sh +++ /dev/null @@ -1,27 +0,0 @@ -# utilities to be sourced for rhizi bash scripts - -if [ "x$NEO4J_ROOT" == "x" ]; then - NEO4J_SHELL=`which neo4j-shell` - if [ "x$NEO4J_SHELL" == "x" ]; then - echo missing neo4j-shell, please define NEO4J_ROOT or place neo4j-shell in PATH - exit 1 - fi -else - NEO4J_SHELL="$NEO4J_ROOT/bin/neo4j-shell" - if [ ! -e $NEO4J_SHELL ]; then - echo "\$NEO4J_ROOT/bin/neo4j-shell does not exist, fix NEO4J_ROOT" - exit 1 - fi -fi - -function quit_if_no_neo4j_running () { - if [ `uname` == "Darwin" ]; then - neo4j_count=`netstat -na -ptcp 2>/dev/null | grep 7474 | wc -l` - else - neo4j_count=`netstat -ltnop 2>/dev/null | grep 7474 | wc -l` - fi - if [ $neo4j_count == "0" ]; then - echo run neo4j please - exit 0 - fi -} -- cgit v1.3.1