[LON-CAPA-cvs] cvs: doc /install/linux install.pl
raeburn
raeburn at source.lon-capa.org
Sun May 26 18:23:25 EDT 2019
raeburn Sun May 26 22:23:25 2019 EDT
Modified files:
/doc/install/linux install.pl
Log:
- Support RHEL 8 (and CentOS 8, once released).
Index: doc/install/linux/install.pl
diff -u doc/install/linux/install.pl:1.53 doc/install/linux/install.pl:1.54
--- doc/install/linux/install.pl:1.53 Sun May 26 22:19:35 2019
+++ doc/install/linux/install.pl Sun May 26 22:23:25 2019
@@ -77,7 +77,7 @@
&mt('Stopping execution.')."\n";
exit;
} else {
- print LOG '$Id: install.pl,v 1.53 2019/05/26 22:19:35 raeburn Exp $'."\n";
+ print LOG '$Id: install.pl,v 1.54 2019/05/26 22:23:25 raeburn Exp $'."\n";
}
#
@@ -196,6 +196,10 @@
$distro = 'rhes'.$1;
$updatecmd = 'yum install LONCAPA-prerequisites';
$installnow = 'yum -y install LONCAPA-prerequisites';
+ } elsif ($versionstring =~ /Red Hat Enterprise Linux release (\d+)/) {
+ $distro = 'rhes'.$1;
+ $updatecmd = 'dnf install LONCAPA-prerequisites';
+ $installnow = 'dnf -y install LONCAPA-prerequisites';
} elsif ($versionstring =~ /CentOS(?:| Linux) release (\d+)/) {
$distro = 'centos'.$1;
$updatecmd = 'yum install LONCAPA-prerequisites';
@@ -466,8 +470,12 @@
'sudo update-locale LANG=en_US.UTF-8';
} elsif ($distro =~ /^(suse|sles)/) {
$command = 'yast language';
- } else {
+ } elsif (-e '/usr/bin/system-config-language') {
$command = 'system-config-language';
+ } elsif (-e '/usr/bin/localectl') {
+ $command = 'localectl set-locale en_US.UTF-8';
+ } else {
+ $command = 'No standard command found';
}
}
last;
@@ -739,6 +747,9 @@
$uses_systemctl{'cups'} = 1;
$daemon{'mysql'} = 'mariadb';
}
+ if ($version >= 8) {
+ $daemon{'ntp'} = 'chronyd';
+ }
}
my $nocheck;
if (! -x $checker_bin) {
More information about the LON-CAPA-cvs
mailing list