Skip to content

Commit

Permalink
set HOME if unset, this is required since some distros don't set HOME…
Browse files Browse the repository at this point in the history
… for code run under/etc/rc and erlexec requires HOME to be set
  • Loading branch information
Claes Wikstrom committed May 4, 2009
1 parent 7d9f3ab commit df7a68b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/yaws.template
Expand Up @@ -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`
Expand All @@ -19,7 +25,6 @@ esac
ENV_PGM=`which env`



help()
{
echo "usage: "
Expand Down

0 comments on commit df7a68b

Please sign in to comment.