summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-10 18:13:05 +0200
committerAlon Levy <alon@pobox.com>2015-04-10 18:14:47 +0200
commit422edeceb60c1898905a8119cbcce262f3b91b58 (patch)
treeb064ad8996e174bed519acd00a5c18d79353be02
parent30bf7c4e6ab0e8521d3acdfceb3f4f37cee44abf (diff)
run-local.sh: take DOMAIN from environment
-rwxr-xr-xrun-local.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/run-local.sh b/run-local.sh
index f98cfd21..570d0c3d 100755
--- a/run-local.sh
+++ b/run-local.sh
@@ -6,7 +6,12 @@ quit_if_no_neo4j_running
CONFIG=res/etc/rhizi-server.conf
EXAMPLE=res/etc/rhizi-server.conf.example
HTPASSWD=res/etc/htpasswd
-DOMAIN=cri.rhizi.net
+if [ "x$DOMAIN" == "x" ]; then
+ echo using default domain
+ DOMAIN=default.rhizi.net
+else
+ echo using $DOMAIN domain
+fi
if [ ! -f $CONFIG ]; then
echo "copying $EXAMPLE to $CONF"
echo "please edit it as you see fit"