]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 138064 - False-positive error message in checksetup.pl when checking for "png...
authorgerv%gerv.net <>
Fri, 19 Apr 2002 02:59:00 +0000 (02:59 +0000)
committergerv%gerv.net <>
Fri, 19 Apr 2002 02:59:00 +0000 (02:59 +0000)
checksetup.pl

index 463382fb5bb36c393a91ec247ca8260665f7fa83..07b037f61f11caf7840e504c02f7689cd17fc611 100755 (executable)
@@ -985,12 +985,14 @@ if(-e "data/params") {
     }
 
     # Check .htaccess allows access to generated images
-    open HTACCESS, "data/webdot/.htaccess";
-    if(! grep(/png/,<HTACCESS>)) {
-      print "Dependency graph images are not accessible.\n";
-      print "Delete data/webdot/.htaccess and re-run checksetup.pl to rectify.\n";
+    if(-e "data/webdot/.htaccess") {
+      open HTACCESS, "data/webdot/.htaccess";
+      if(! grep(/png/,<HTACCESS>)) {
+        print "Dependency graph images are not accessible.\n";
+        print "Delete data/webdot/.htaccess and re-run checksetup.pl to rectify.\n";
+      }
+      close HTACCESS;
     }
-    close HTACCESS;
   }
 }