Project

General

Profile

Bug #28004

katello-certs-check should set locales for $(date) commands

Added by Andreas Bleischwitz 8 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
easy
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

When setting LC_TIME to anything else than EN_US or C, katello-certs-check is unable to parse the date-string.

Checking server certificate encoding: 
[OK]

date: ungültiges Datum „Okt 5 12:08:34 2019“
Checking expiration of certificate: /usr/sbin/katello-certs-check: Zeile 94: [: -gt: Einstelliger (unärer) Operator erwartet.

[OK]

Checking expiration of CA bundle: /usr/sbin/katello-certs-check: Zeile 100: [: -gt: Einstelliger (unärer) Operator erwartet.
# locale |grep LC_TIME
LC_TIME="de_DE.utf8" 
katello-certs-check-fix-LC_TIME.diff katello-certs-check-fix-LC_TIME.diff 998 Bytes Fix for missing LC_TIME environment in $(date) calls Andreas Bleischwitz, 10/05/2019 12:30 PM

Also available in: Atom PDF