Project

General

Profile

Actions

Bug #28004

closed

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

Added by Andreas Bleischwitz over 4 years ago. Updated about 2 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
easy
Triaged:
No
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" 

Files

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

Related issues 1 (0 open1 closed)

Related to Installer - Bug #33109: Date used by katello-certs-check should be formatted correctly by programClosedActions
Actions

Also available in: Atom PDF