summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xchecksetup.pl12
1 files changed, 7 insertions, 5 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 463382fb5..07b037f61 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -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;
}
}