X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=scripts%2Finstallation_check.pl;h=c7a7cdc5a249f4880e4706388f5f6cbf0f9d8ec3;hb=c7edb24800396748f2bf1e40ff05f90a18d31b02;hp=306156b21ffa59998e41135fa062c83942d98a95;hpb=b179b8df8426376f1592c7fdc3e693ed564c2fc3;p=kivitendo-erp.git diff --git a/scripts/installation_check.pl b/scripts/installation_check.pl index 306156b21..c7a7cdc5a 100755 --- a/scripts/installation_check.pl +++ b/scripts/installation_check.pl @@ -22,3 +22,19 @@ foreach my $module (@SL::InstallationCheck::required_modules) { print(" ok\n"); } } + +foreach my $module (@SL::InstallationCheck::optional_modules) { + print("Looking for $module->{name} (optional)..."); + if (!SL::InstallationCheck::module_available($module->{"name"})) { + print(" NOT found\n" . + " The module '$module->{name}' is not available on your system.\n" . + " While it is not strictly needed it provides extra functionality\n" . + " and should be installed.\n" . + " You can install it with the CPAN shell, e.g.\n" . + " perl -MCPAN -e \"install $module->{name}\"\n" . + " or download it from this URL and install it manually:\n" . + " $module->{url}\n\n"); + } else { + print(" ok\n"); + } +}