]> git.etc.gen.nz Git - spong.git/commitdiff
added mkdir for $SPONGTMP in new install tree
authorStephen L Johnson <sjohnson@monsters.org>
Fri, 14 Jul 2000 04:05:57 +0000 (04:05 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Fri, 14 Jul 2000 04:05:57 +0000 (04:05 +0000)
build

diff --git a/build b/build
index 2334beaac5f9693359585b7a01ec5bcccddcb11b..38fdfacfb970fc6feb32eab88699ffe6c135d4da 100755 (executable)
--- a/build
+++ b/build
@@ -14,6 +14,7 @@ $LIBDIR   = "$PREFIX/lib";
 $WWWDIR   = "$PREFIX/www";
 $CGIDIR   = "$PREFIX/cgi-bin";
 $VARDIR   = "$PREFIX/var";      # Directory where spong will put data
+$TMPDIR   = "$PREFIX/tmp";      # update $SPONGTMP var in spong.conf also
 
 $WEBUSER  = "nobody";
 
@@ -28,6 +29,8 @@ $ILIBDIR  = "$IPREFIX/lib";
 $IWWWDIR  = "$IPREFIX/www";
 $ICGIDIR  = "$IPREFIX/cgi-bin";
 $IVARDIR  = "$IPREFIX/var";      # Directory where spong will put data
+$ITMPDIR   = "$IPREFIX/tmp";      # update $SPONGTMP var in spong.conf also
+
 
 # -----------------------------------------------------------------------------
 # You really really shouldn't need to change anything below this point (I hope)
@@ -133,6 +136,8 @@ sub install {
    ssystem( "mkdir -p $IVARDIR/archives" );
    ssystem( "mkdir -p $IVARDIR/misc" );
 
+   ssystem( "mkdir -p $ITMPDIR" ) if ! -d $ITMPDIR;
+
    # TODO - Clean this up...
 
    ssystem( "mkdir -p $ILIBDIR" ) if ! -d $ILIBDIR;