Details
Description
I had an occasion to try to run cbbrowse_logs and find that it does not run properly. I have no doubt this could be due to spaces in the path (a poor excuse), so I peeked into the shell script to see about fixing it.
It's filled with cruft from it's build environment that has NO place at all on my install.
For example:
#!/bin/sh
- Copyright (c) 2011, Couchbase, Inc.
- All rights reserved.
PATH="/Users/buildbot/mini64/couchdbxapp-2.0.0dp4_mini64/build/install/bin":$PATH
export PATH
ERL_LIBS="/Users/buildbot/mini64/couchdbxapp-2.0.0dp4_mini64/build/install/lib/couchdb/erlang/lib:/Users/buildbot/mini64/couchdbxapp-2.0.0dp4_mini64/build/install/lib/ns_server/erlang/lib"
export ERL_LIBS
if [ x"$1" != "x" ]
then
extra_args="-log $1"
fi
exec erl -pa ebin -noshell -run ns_log_browser \
-report_dir "/Users/buildbot/mini64/couchdbxapp-2.0.0dp4_mini64/build/install/var/lib/couchbase/logs" ${extra_args} \
-run init stop – "$@"