version 1.11, 2016/04/09 19:04:39
|
version 1.15, 2018/10/27 20:29:22
|
Line 62 if ('<DIST />' eq 'sles9' || '<DIST />'
|
Line 62 if ('<DIST />' eq 'sles9' || '<DIST />'
|
close(PIPE); |
close(PIPE); |
} |
} |
} elsif ('<DIST />' eq 'fedora18' || '<DIST />' eq 'fedora19' || '<DIST />' eq 'fedora20' || |
} elsif ('<DIST />' eq 'fedora18' || '<DIST />' eq 'fedora19' || '<DIST />' eq 'fedora20' || |
'<DIST />' eq 'fedora21' || '<DIST />' eq 'rhes7' || '<DIST />' eq 'centos7' || |
'<DIST />' eq 'fedora21' || '<DIST />' eq 'fedora22' || '<DIST />' eq 'fedora23' || |
'<DIST />' eq 'scientific7') { |
'<DIST />' eq 'fedora24' || '<DIST />' eq 'fedora25' || '<DIST />' eq 'fedora26' || |
|
'<DIST />' eq 'fedora27' || '<DIST />' eq 'fedora28' || '<DIST />' eq 'fedora29' || |
|
'<DIST />' eq 'rhes7' || '<DIST />' eq 'centos7' || '<DIST />' eq 'scientific7') { |
if (open(PIPE,"cat /etc/locale.conf |grep '^LANG' |")) { |
if (open(PIPE,"cat /etc/locale.conf |grep '^LANG' |")) { |
print "Checking OS language"; |
print "Checking OS language"; |
if (<PIPE> =~ /^LANG="en/) { |
if (<PIPE> =~ /^LANG="en/) { |
Line 74 if ('<DIST />' eq 'sles9' || '<DIST />'
|
Line 76 if ('<DIST />' eq 'sles9' || '<DIST />'
|
} |
} |
close(PIPE); |
close(PIPE); |
} |
} |
|
} elsif ('<DIST />' eq 'sles15') { |
|
if (open(PIPE,"cat /etc/locale.conf |grep '^LANG' |")) { |
|
print "Checking OS language"; |
|
if (<PIPE> =~ /^LANG=en/) { |
|
print "... OK\n"; |
|
} else { |
|
print $osmsg. |
|
"It is recommended that you set LANG=en_US.UTF-8 in /etc/locale.conf\n"; |
|
} |
|
close(PIPE); |
|
} |
} else { |
} else { |
if (open(PIPE,"cat /etc/sysconfig/i18n |grep '^LANG' |")) { |
if (open(PIPE,"cat /etc/sysconfig/i18n |grep '^LANG' |")) { |
print "Checking OS language"; |
print "Checking OS language"; |