Permalink
Browse files

create web/var if it doesn't exist already

  • Loading branch information...
1 parent 1b37e5f commit 299e6a3d3704d674ef20b4f13f61932b69f66b41 @timf timf committed Jul 15, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 web/sbin/new-conf.sh
View
8 web/sbin/new-conf.sh
@@ -5,6 +5,14 @@ PYTHON_EXE="/usr/bin/env python -Wignore::DeprecationWarning"
NIMBUS_WEBDIR_REL="`dirname $0`/.."
NIMBUS_WEBDIR=`cd $NIMBUS_WEBDIR_REL; pwd`
+if [ ! -d $NIMBUS_WEBDIR/var ]; then
+ mkdir $NIMBUS_WEBDIR/var
+ if [ $? -ne 0 ]; then
+ echo "Could not create $NIMBUS_WEBDIR/var"
+ exit 1
+ fi
+fi
+
# Force this directory to be private.
chmod 700 $NIMBUS_WEBDIR/var
if [ $? -ne 0 ]; then

0 comments on commit 299e6a3

Please sign in to comment.