--- doc/install/linux/install.pl 2011/04/24 22:44:50 1.10 +++ doc/install/linux/install.pl 2011/05/05 16:38:07 1.11 @@ -72,7 +72,7 @@ if (!open(LOG,">>loncapa_install.log")) &mt('Stopping execution.')."\n"; exit; } else { - print LOG '$Id: install.pl,v 1.10 2011/04/24 22:44:50 raeburn Exp $'."\n"; + print LOG '$Id: install.pl,v 1.11 2011/05/05 16:38:07 raeburn Exp $'."\n"; } # @@ -195,7 +195,7 @@ sub get_distro { $distro = 'centos'.$1; $updatecmd = 'yum install LONCAPA-prerequisites'; $installnow = 'yum -y install LONCAPA-prerequisites'; - } elsif ($versionstring =~ /Scientific Linux SL release ([\d.]+) /) { + } elsif ($versionstring =~ /Scientific Linux (SL )?release ([\d.]+) /) { my $ver = $1; $ver =~ s/\.\d+$//; $distro = 'scientific'.$ver; @@ -490,12 +490,12 @@ sub chkconfig { my $nrlstr = join('',@norunlevels); foreach my $type ('apache','mysql','ntp','cups','memcached') { my $service = $daemon{$type}; - my $command = $checker_bin.' --list '.$service; + my $command = $checker_bin.' --list '.$service.' 2>/dev/null'; if ($type eq 'cups') { if ($distro =~ /^(?:debian|ubuntu)(\d+)/) { my $version = $1; if (($distro =~ /^ubuntu/) && ($version <= 8)) { - $command = $checker_bin.' --list cupsys'; + $command = $checker_bin.' --list cupsys 2>/dev/null'; } } } @@ -1264,7 +1264,9 @@ if ($callsub{'runlevels'}) { } } } - &update_SuSEfirewall2_setup($instdir); + if ($distro =~ /^(suse|sles)/) { + &update_SuSEfirewall2_setup($instdir); + } } else { &print_and_log(&mt('Skipping setting override for start-up order of services.')."\n"); } @@ -1290,9 +1292,13 @@ if ($callsub{'firewall'}) { } } } + } elsif ($distro =~ /^scientific/) { + print &mt('Use [_1] to configure the firewall to allow access for [_2].', + 'system-config-firewall-tui -- Customize', + 'ssh, http')."\n"; } else { print &mt('Use [_1] to configure the firewall to allow access for [_2].', - 'setup -- Firewall confiuration -> Customize', + 'setup -- Firewall configuration -> Customize', 'ssh, http, https')."\n"; } } else { @@ -1504,7 +1510,7 @@ sub kill_extra_services { if (($distro =~ /^ubuntu/) && ($version <= 8)) { $daemon = 'cupsys'; } - } elsif ($distro =~ /^(?:suse|sles)/) { + } elsif ($distro =~ /^(?:suse|sles|scientific)/) { $daemon = 'cups'; } } @@ -1664,7 +1670,7 @@ sub copy_httpd_conf { print_and_log(&mt('Copying the LON-CAPA [_1] to [_2].',"'httpd.conf'", "'/etc/httpd/conf/httpd.conf'")."\n"); copy "/etc/httpd/conf/httpd.conf","/etc/httpd/conf/httpd.conf.original"; - copy "$instdir/httpd.conf","/etc/httpd/conf/httpd.conf"; + copy "$instdir/centos-rhes-fedora-sl/httpd.conf","/etc/httpd/conf/httpd.conf"; chmod(0444,"/etc/httpd/conf/httpd.conf"); print_and_log("\n"); }