Browse files

make local_install put var dir under $HOME

The "make local_install" command was using /usr/local/var by default,
which might not exist and the user might not have permissions to
create. Put var and its subdirs under $HOME with the rest of
local_install instead.
  • Loading branch information...
1 parent 0458c5d commit 4e78762ebbd5eb26d0b05cd30b9ba432d61b003f @vinoski vinoski committed Dec 15, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −1 scripts/Makefile
  2. +1 −0 scripts/local-install
View
2 scripts/Makefile
@@ -10,7 +10,7 @@ all debug: ../bin/yaws yaws.conf
local_install: ../bin/yaws
- VARDIR='$(VARDIR)' ./local-install true
+ VARDIR="${HOME}/var" ./local-install true
yaws.conf:
YAWSDIR='$(PREFIX)/lib/yaws' LOGDIR='$(PREFIX)/var/log/yaws' \
View
1 scripts/local-install
@@ -27,6 +27,7 @@ else
fi
topdir=`cd .. && pwd`
+[ -d "${VARDIR}" ] || mkdir "${VARDIR}"
[ -d "${VARDIR}/yaws" ] || mkdir "${VARDIR}/yaws"
[ -d "${VARDIR}/yaws/ebin" ] || mkdir "${VARDIR}/yaws/ebin"
YAWSDIR="$topdir" LOGDIR="$logdir" VARDIR="$VARDIR" PORT=8000 \

0 comments on commit 4e78762

Please sign in to comment.