Permalink
Browse files

set HOME if unset, this is required since some distros don't set HOME…

… for code run under/etc/rc and erlexec requires HOME to be set
  • Loading branch information...
klacke committed May 4, 2009
1 parent 7d9f3ab commit df7a68bb721081e2b8f6faec6f1156a633820828
Showing with 6 additions and 1 deletion.
  1. +6 −1 scripts/yaws.template
View
@@ -6,6 +6,12 @@ erl="%erl%"
run_erl="%run_erl%"
to_erl="%to_erl%"
+# erlexec requires HOME to be set, and some distros
+# run /etc/rc scripts without HOME being set
+if [ -z "$HOME" ]; then
+ export HOME=/root
+fi
+
case `uname` in
CYGWIN*)
yawsdir=`cygpath -m $yawsdir`
@@ -19,7 +25,6 @@ esac
ENV_PGM=`which env`
-
help()
{
echo "usage: "

0 comments on commit df7a68b

Please sign in to comment.