Revision 764ab732
Von Jan Büren vor etwa 1 Jahr hinzugefügt
| scripts/installation_check.pl | ||
|---|---|---|
| use Term::ANSIColor;
 | ||
| use Text::Wrap;
 | ||
|  | ||
| my $exit = 0;
 | ||
| unless (eval { require Config::Std; 1 }){
 | ||
|   print STDERR <<EOL ;
 | ||
| +------------------------------------------------------------------------------+
 | ||
| ... | ... | |
| +------------------------------------------------------------------------------+
 | ||
| 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;
 | ||
|  | ||
Auch abrufbar als: Unified diff
ListMoreUtils als harte Ausstiegsbedingung für installation_check