Diff for /doc/install/linux/install.pl between versions 1.58 and 1.59

version 1.58, 2019/10/07 22:28:02 version 1.59, 2019/10/30 03:42:05
Line 748  sub chkconfig { Line 748  sub chkconfig {
         if ($version >= 19) {          if ($version >= 19) {
             $daemon{'mysql'} = 'mariadb';              $daemon{'mysql'} = 'mariadb';
         }          }
           if ($version >= 26) {
               $daemon{'ntp'} = 'chronyd';
           }
     } elsif ($distro =~ /^(?:centos|rhes|scientific|oracle)(\d+)/) {      } elsif ($distro =~ /^(?:centos|rhes|scientific|oracle)(\d+)/) {
         my $version = $1;          my $version = $1;
         if ($version >= 7) {          if ($version >= 7) {
Line 1042  sub chkapache { Line 1045  sub chkapache {
         }          }
     } else {      } else {
         my $configfile = 'httpd.conf';          my $configfile = 'httpd.conf';
           my $mpmfile = 'mpm.conf';
         if ($distro =~ /^(?:centos|rhes|scientific|oracle)(\d+)$/) {          if ($distro =~ /^(?:centos|rhes|scientific|oracle)(\d+)$/) {
             if ($1 >= 7) {              if ($1 >= 7) {
                 $configfile = 'apache2.4/httpd.conf';                  $configfile = 'apache2.4/httpd.conf';
Line 1050  sub chkapache { Line 1054  sub chkapache {
             }              }
         } elsif ($distro =~ /^fedora(\d+)$/) {          } elsif ($distro =~ /^fedora(\d+)$/) {
             if ($1 > 17) {              if ($1 > 17) {
                 $configfile = 'apache2.4/httpd.conf';                   $configfile = 'apache2.4/httpd.conf';
             } elsif ($1 > 10) {              } elsif ($1 > 10) {
                 $configfile = 'new/httpd.conf';                  $configfile = 'new/httpd.conf';
             }              }
Line 1068  sub chkapache { Line 1072  sub chkapache {
                 }                  }
             }              }
         }          }
           if (-e "/etc/httpd/conf.modules.d/00-mpm.conf") {
               if (!-e "$instdir/centos-rhes-fedora-sl/$mpmfile") {
                   print &mt('Warning: No LON-CAPA Apache MPM configuration file found for installation check.')."\n";
               } elsif ((-e "/etc/httpd/conf.modules.d/00-mpm.conf") && (-e "$instdir/centos-rhes-fedora-sl/$mpmfile")) {
                   if (open(PIPE, "diff --brief $instdir/centos-rhes-fedora-sl/$mpmfile /etc/httpd/conf.modules.d/00-mpm.conf |")) {
                       my $diffres = <PIPE>;
                       close(PIPE);
                       chomp($diffres);
                       if ($diffres) {
                           $fixapache = 1;
                       }
                   }
               }
           }
     }      }
     return $fixapache;      return $fixapache;
 }  }
Line 1986  if ($callsub{'apache'}) { Line 2004  if ($callsub{'apache'}) {
         &copy_apache2_debconf($instdir,$distro,$hostname);          &copy_apache2_debconf($instdir,$distro,$hostname);
     } else {      } else {
         &copy_httpd_conf($instdir,$distro,$hostname);          &copy_httpd_conf($instdir,$distro,$hostname);
           &copy_mpm_conf($instdir,$distro);
     }      }
 } else {  } else {
     print_and_log(&mt('Skipping configuration of Apache web server.')."\n");      print_and_log(&mt('Skipping configuration of Apache web server.')."\n");
Line 2577  sub copy_httpd_conf { Line 2596  sub copy_httpd_conf {
     print_and_log("\n");      print_and_log("\n");
 }  }
   
   ###########################################################
   ##
   ## RHEL/CentOS/Fedora/Scientific Linux
   ## Copy LON-CAPA mpm.conf to /etc/httpd/conf.modules.d/00-mpm.conf
   ##
   ## The LON-CAPA mpm.conf enables the prefork MPM module in
   ## Apache. This is also the default for RHEL/CentOS/Oracle
   ## Linux 7and earlier, and Fedora 26 and earlier. For more
   ## recent versions of those distros, the event MPM is enabled
   ## by default. After &copy_mpm_conf() is run, the prefork MPM
   ## module will be enabled instead of the event MPM module.
   ##
   ###########################################################
   
   sub copy_mpm_conf {
       my ($instdir,$distro) = @_;
       my $mpmfile = 'mpm.conf';
       if ((-e "/etc/httpd/conf.modules.d/00-mpm.conf") &&
           (-e "$instdir/centos-rhes-fedora-sl/$mpmfile")) {
           print_and_log(&mt('Copying the LON-CAPA [_1] to [_2].',"'mpm.conf'",
                         "'/etc/httpd/conf.modules.d/00-mpm.conf'")."\n");
           copy "$instdir/centos-rhes-fedora-sl/$mpmfile","/etc/httpd/conf.modules.d/00-mpm.conf";
           chmod(0644,"/etc/httpd/conf.modules.d/00-mpm.conf");
           print_and_log("\n");
       } else {
           my $logfail;
           if ($distro =~ /^(?:centos|rhes|scientific|oracle)(\d+)$/) {
               if ($1 > 7) {
                   $logfail = 1;
               }
           } elsif ($distro =~ /^fedora(\d+)$/) {
               if ($1 > 26) {
                   $logfail = 1;
               }
           }
           if ($logfail) {
               print_and_log(&mt('Warning: copying the LON-CAPA [_1] failed because [_2] and/or [_3] are missing.',
                                 $mpmfile,"'$instdir/centos-rhes-fedora-sl/$mpmfile'",
                                 "'/etc/httpd/conf.modules.d/00-mpm.conf'"));
               print_and_log("\n");
           }
       }
   }
   
 ###############################################  ###############################################
 ##  ##
 ## Copy loncapassl.conf and sslrewrite.conf  ## Copy loncapassl.conf and sslrewrite.conf

Removed from v.1.58  
changed lines
  Added in v.1.59


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>