Permalink
Browse files

Set HOME to /tmp if it's not set in membase-server.sh.

For some reason erl won't run if HOME is not set.

Change-Id: Ic94d71ec4354e4a0b7c59c6f469378c383b3349a
Reviewed-on: http://review.couchbase.org/8374
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
  • Loading branch information...
1 parent 35ee73d commit 91d09096c662aa7e5fe86347b3b9fe1ee3beb9e8 @aartamonau aartamonau committed with alk Jul 26, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 membase-server.sh.in
View
@@ -35,6 +35,12 @@ COOKIEFILE="@PREFIX@/var/lib/membase/membase-server.cookie"
couch_start_arguments=""
+# For some obscure reason erl requires HOME environment variable to be set.
+if [ -z "$HOME" ]
+then
+ export HOME=/tmp
+fi
+
_check_nofile () {
if [ `ulimit -n` -lt 10240 ]
then

0 comments on commit 91d0909

Please sign in to comment.