From: bbaetz%student.usyd.edu.au <> Date: Wed, 10 Jul 2002 07:43:53 +0000 (+0000) Subject: Bug 156568 - data dir is not correctly created X-Git-Tag: bugzilla-2.16~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa56da8378271e7881f4aa12f27cf152397e483c;p=thirdparty%2Fbugzilla.git Bug 156568 - data dir is not correctly created r=myk x2 --- diff --git a/checksetup.pl b/checksetup.pl index 2804fe50d1..f382757542 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -636,7 +636,12 @@ $::ENV{'PATH'} = $origPath; # Create initial --DATA-- directory and make the initial empty files there: # -unless (-d 'data') { +# The |require "globals.pl"| above ends up creating a template object with +# a COMPILE_DIR of 'data'. This means that TT creates the directory for us, +# so this code wouldn't run if we just checked for the existance of the +# directory. Instead, check for the existance of 'data/nomail', which is +# created in this block +unless (-d 'data' && -e 'data/nomail') { print "Creating data directory ...\n"; # permissions for non-webservergroup are fixed later on mkdir 'data', 0770;