X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=scripts%2Finstallation_check.pl;h=2bec003cd76f4b05acad1c2250bf8520eeccdce8;hb=1857ca9df82773ae3fd16383d89dc54f5149a9e3;hp=c132310ec58a54edb5b6aa45ff2a43b163abdce3;hpb=ef540e3be2813445e92e138f6e9a9b614aff703c;p=kivitendo-erp.git diff --git a/scripts/installation_check.pl b/scripts/installation_check.pl index c132310ec..2bec003cd 100755 --- a/scripts/installation_check.pl +++ b/scripts/installation_check.pl @@ -13,7 +13,28 @@ BEGIN { $master_templates = './templates/print/'; } +unless (eval { require Config::Std; 1 }){ + print STDERR <read(undef, 'may fail')) { + print_header('Could not load the config file. If you have dependancies from any features enabled in the configuration these will still show up as optional because of this. Please rerun this script after installing the dependancies needed to load the cofiguration.') +} else { + SL::InstallationCheck::check_for_conditional_dependencies(); +} + if ($check{r}) { print_header('Checking Required Modules'); check_module($_, required => 1) for @SL::InstallationCheck::required_modules; - print_header('Standard check for required modules done. See additional parameters for more checks (-- help)') if $default_run; + print_header('Standard check for required modules done. See additional parameters for more checks (--help)') if $default_run; } if ($check{o}) { print_header('Checking Optional Modules'); @@ -194,10 +225,7 @@ sub print_result { sub print_line { my ($text, $res, $color) = @_; - print $text, " ", ('.' x (78 - length($text) - length($res))); - print mycolor($res, $color); - print "\n"; - return; + print $text, " ", ('.' x (78 - length($text) - length($res))), " ", mycolor($res, $color), $/; } sub print_header {