diff options
| author | Alon Levy <alon@pobox.com> | 2015-01-13 20:07:17 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-01-13 20:07:17 +0200 |
| commit | 8f88d7d7618d52bfeae5b9a51c06a5b91b545a71 (patch) | |
| tree | ff4abf19e4e5252f5493c523ee653815e6be83ed /run-local.sh | |
| parent | 503b3fc960ed3af2f26fc98c667a94f1733b9098 (diff) | |
rz_cli_tool: fix after extraction; make run-local.sh friendlier
Diffstat (limited to 'run-local.sh')
| -rwxr-xr-x | run-local.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/run-local.sh b/run-local.sh index 033b896c..39c1580b 100755 --- a/run-local.sh +++ b/run-local.sh @@ -8,6 +8,23 @@ if [ $neo4j_count == "0" ]; then echo run neo4j please exit 0 fi +CONFIG=res/etc/rhizi-server.conf +EXAMPLE=res/etc/rhizi-server.conf.example +HTPASSWD=res/etc/htpasswd +if [ ! -f $CONFIG ]; then + echo "copying $EXAMPLE to $CONF" + echo "please edit it as you see fit" + cp $EXAMPLE $CONFIG +fi +if [ `cat $CONFIG | grep access_control | grep True | wc -l` == 1 -a ! -e $HTPASSWD ] ; then + echo "missing htpasswd file. Please create an input file containing" + echo "username,password" + echo "on every line, one line per user" + echo "place it in for instance res/etc/htpasswd-init-file" + echo "and run" + echo "src/local/rz_cli_tool.py --init-htpasswd-db --config-dir res/etc --htpasswd-init-file res/etc/htpasswd-init-file" + exit 1 +fi make # building css relies on Makefile ant -f build.ant deploy-local cd deploy-local |
