]> wagnertech.de Git - mfinanz.git/blobdiff - scripts/installation_check.pl
Merge branch 'master' of vc.linet-services.de:public/lx-office-erp
[mfinanz.git] / scripts / installation_check.pl
index def85906c9f3b88bc9ec34a88e1aecbb1063fe51..a50d184d2863e06a91d2e05c5e34dae7b92fb1a0 100755 (executable)
@@ -14,6 +14,7 @@ BEGIN {
 }
 
 use SL::InstallationCheck;
+use SL::LxOfficeConf;
 
 my %check;
 Getopt::Long::Configure ("bundling");
@@ -47,6 +48,12 @@ if ($check{a}) {
 
 $| = 1;
 
+if (!SL::LxOfficeConf->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;