diff options
| author | Alon Levy <alon@pobox.com> | 2015-04-10 18:13:05 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-04-10 18:14:47 +0200 |
| commit | 422edeceb60c1898905a8119cbcce262f3b91b58 (patch) | |
| tree | b064ad8996e174bed519acd00a5c18d79353be02 | |
| parent | 30bf7c4e6ab0e8521d3acdfceb3f4f37cee44abf (diff) | |
run-local.sh: take DOMAIN from environment
| -rwxr-xr-x | run-local.sh | 7 |
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" |
