diff options
author | bbaetz%student.usyd.edu.au <> | 2002-07-10 07:43:44 +0000 |
---|---|---|
committer | bbaetz%student.usyd.edu.au <> | 2002-07-10 07:43:44 +0000 |
commit | 2809fb5698934c0e73c26294fedb1604db896f30 (patch) | |
tree | 8eb3ee5d9852b1f4e61283e945ed2f12cdeb7515 /checksetup.pl | |
parent | fd4ff1a62c3c65dcb88589e708dc3be5738f7890 (diff) | |
download | bugs-2809fb5698934c0e73c26294fedb1604db896f30.tar bugs-2809fb5698934c0e73c26294fedb1604db896f30.tar.gz bugs-2809fb5698934c0e73c26294fedb1604db896f30.tar.bz2 bugs-2809fb5698934c0e73c26294fedb1604db896f30.tar.xz bugs-2809fb5698934c0e73c26294fedb1604db896f30.zip |
Bug 156568 - data dir is not correctly created
r=myk x2
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-x | checksetup.pl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/checksetup.pl b/checksetup.pl index 4682359bf..2cd2d4d94 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -637,7 +637,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; |