Skip to content

Commit

Permalink
Merge pull request #267 from kivitendo/20240301-inst-check
Browse files Browse the repository at this point in the history
ListMoreUtils als harte Ausstiegsbedingung für installation_check
  • Loading branch information
jbueren authored Mar 1, 2024
2 parents d5db942 + 764ab73 commit df8ea86
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion scripts/installation_check.pl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ BEGIN
use Term::ANSIColor;
use Text::Wrap;

my $exit = 0;
unless (eval { require Config::Std; 1 }){
print STDERR <<EOL ;
+------------------------------------------------------------------------------+
Expand All @@ -35,9 +36,30 @@ BEGIN
+------------------------------------------------------------------------------+
EOL

exit 72;
$exit = 1;
}


unless (eval { require List::MoreUtils; 1 }){
print STDERR <<EOL ;
+------------------------------------------------------------------------------+
Perl Modul List::MoreUtils could not be loaded.
Debian: you may install the needed *.deb package with:
apt install liblist-moreutils-perl
Red Hat/Fedora/CentOS: you may install the needed *.rpm package with:
dnf install perl-List-MoreUtils
+------------------------------------------------------------------------------+
EOL

$exit = 1;
}

exit 72 if $exit;

use SL::InstallationCheck;
use SL::LxOfficeConf;

Expand Down

0 comments on commit df8ea86

Please sign in to comment.