aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-08-01 05:34:20 +0000
committermkanat%bugzilla.org <>2006-08-01 05:34:20 +0000
commite3cf843de60425b0ea8c8ff57a576c468d61b9bd (patch)
treef59aa5b2c1a2ef1d7b50a43e037fc39f9f114cf5 /checksetup.pl
parentBug 346545: checksetup should show the name and version of the OS it's being ... (diff)
downloadbugzilla-e3cf843de60425b0ea8c8ff57a576c468d61b9bd.tar.gz
bugzilla-e3cf843de60425b0ea8c8ff57a576c468d61b9bd.tar.bz2
bugzilla-e3cf843de60425b0ea8c8ff57a576c468d61b9bd.zip
Bug 346594: Move GraphViz check into Bugzilla::Install::Requirements
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=myk
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl23
1 files changed, 1 insertions, 22 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 889b363af..813aa0a83 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -375,7 +375,6 @@ create_htaccess() if $lc_hash->{'create_htaccess'};
# XXX Some parts of checksetup still need these, right now.
my $datadir = bz_locations()->{'datadir'};
-my $webdotdir = bz_locations()->{'webdotdir'};
# Remove parameters from the params file that no longer exist in Bugzilla,
# and set the defaults for new ones
@@ -402,27 +401,7 @@ fix_all_file_permissions(!$silent);
# If we are using a local 'dot' binary, verify the specified binary exists
# and that the generated images are accessible.
#
-
-if( Bugzilla->params->{'webdotbase'} && Bugzilla->params->{'webdotbase'} !~ /^https?:/ ) {
- printf("Checking for %15s %-9s ", "GraphViz", "(any)") unless $silent;
- if(-x Bugzilla->params->{'webdotbase'}) {
- print "ok: found\n" unless $silent;
- } else {
- print "not a valid executable: " . Bugzilla->params->{'webdotbase'} . "\n";
- }
-
- # Check .htaccess allows access to generated images
- if(-e "$webdotdir/.htaccess") {
- open HTACCESS, "$webdotdir/.htaccess";
- if(! grep(/png/,<HTACCESS>)) {
- print "Dependency graph images are not accessible.\n";
- print "delete $webdotdir/.htaccess and re-run checksetup.pl to fix.\n";
- }
- close HTACCESS;
- }
- print "\n" unless $silent;
-}
-
+check_graphviz(!$silent) if Bugzilla->params->{'webdotbase'};
###########################################################################
# Populate groups table