summaryrefslogtreecommitdiff
path: root/run-local.sh
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-01-27 12:36:50 +0200
committerAlon Levy <alon@pobox.com>2015-01-27 12:36:50 +0200
commit1b3d9ebb4425dcee22ede0fd1be8c33c5d61e2b4 (patch)
treeb3c1da12db30df45be4a5ebaf1d1cb3c089346bb /run-local.sh
parentdff333b558cb29f1c6fa6d13ee4239a9bc0a81a6 (diff)
add reset-local-database.sh, extract tools/utils.sh
Diffstat (limited to 'run-local.sh')
-rwxr-xr-xrun-local.sh13
1 files changed, 4 insertions, 9 deletions
diff --git a/run-local.sh b/run-local.sh
index 39c1580b..6cbb3568 100755
--- a/run-local.sh
+++ b/run-local.sh
@@ -1,13 +1,8 @@
#!/bin/sh
-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
+. tools/utils.sh
+
+quit_if_no_neo4j_running
+
CONFIG=res/etc/rhizi-server.conf
EXAMPLE=res/etc/rhizi-server.conf.example
HTPASSWD=res/etc/htpasswd