[LON-CAPA-cvs] cvs: doc /install/linux install.pl
raeburn
raeburn at source.lon-capa.org
Fri May 1 10:13:32 EDT 2020
raeburn Fri May 1 14:13:32 2020 EDT
Modified files:
/doc/install/linux install.pl
Log:
- Early return from &check_locale() routine if locale information absent.
- Example loncapa release name now includes major, minor and sub version.
Index: doc/install/linux/install.pl
diff -u doc/install/linux/install.pl:1.62 doc/install/linux/install.pl:1.63
--- doc/install/linux/install.pl:1.62 Tue Dec 3 21:52:44 2019
+++ doc/install/linux/install.pl Fri May 1 14:13:31 2020
@@ -77,7 +77,7 @@
&mt('Stopping execution.')."\n";
exit;
} else {
- print LOG '$Id: install.pl,v 1.62 2019/12/03 21:52:44 raeburn Exp $'."\n";
+ print LOG '$Id: install.pl,v 1.63 2020/05/01 14:13:31 raeburn Exp $'."\n";
}
#
@@ -421,23 +421,26 @@
sub check_locale {
my ($distro) = @_;
- my ($fh,$langvar,$command);
+ my ($fh,$langvar,$command,$earlyout);
$langvar = 'LANG';
if ($distro =~ /^(ubuntu|debian)/) {
if (!open($fh,"</etc/default/locale")) {
print &mt('Failed to open: [_1], default locale not checked.',
'/etc/default/locale');
+ $earlyout = 1;
}
} elsif ($distro =~ /^(suse|sles)(\d+)/) {
if (($1 eq 'sles') && ($2 >= 15)) {
if (!open($fh,"</etc/locale.conf")) {
print &mt('Failed to open: [_1], default locale not checked.',
'/etc/locale.conf');
+ $earlyout = 1;
}
} else {
if (!open($fh,"</etc/sysconfig/language")) {
print &mt('Failed to open: [_1], default locale not checked.',
'/etc/sysconfig/language');
+ $earlyout = 1;
}
$langvar = 'RC_LANG';
}
@@ -446,6 +449,7 @@
if (!open($fh,"</etc/locale.conf")) {
print &mt('Failed to open: [_1], default locale not checked.',
'/etc/locale.conf');
+ $earlyout = 1;
}
} elsif (!open($fh,"</etc/sysconfig/i18n")) {
print &mt('Failed to open: [_1], default locale not checked.',
@@ -456,17 +460,21 @@
if (!open($fh,"</etc/locale.conf")) {
print &mt('Failed to open: [_1], default locale not checked.',
'/etc/locale.conf');
+ $earlyout = 1;
}
} elsif (!open($fh,"</etc/sysconfig/i18n")) {
print &mt('Failed to open: [_1], default locale not checked.',
'/etc/sysconfig/i18n');
+ $earlyout = 1;
}
} else {
if (!open($fh,"</etc/sysconfig/i18n")) {
print &mt('Failed to open: [_1], default locale not checked.',
'/etc/sysconfig/i18n');
+ $earlyout = 1;
}
}
+ return if ($earlyout);
my @data = <$fh>;
chomp(@data);
foreach my $item (@data) {
@@ -3376,7 +3384,7 @@
print &mt('LON-CAPA source files extracted.')."\n".
&mt('It remains for you to execute the following commands:')."
-cd /root/loncapa-N.N (N.N should correspond to a version number like '0.4')
+cd /root/loncapa-X.Y.Z (X.Y.Z should correspond to a version number like '2.11.3')
./UPDATE
".&mt('If you have any trouble, please see [_1] and [_2]',
More information about the LON-CAPA-cvs
mailing list