Bug 1819613

Summary: /etc/cron.daily/rhsmd gives error sleep: missing operand
Product: Red Hat Enterprise Linux 7 Reporter: Dennixx <voetelink>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.8CC: apmukher, gtaylor, mvanderw, redakkan, voetelink
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-06 16:13:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dennixx 2020-04-01 07:52:46 UTC
Description of problem:
I received a bunch of e-mails from cron with the following content:
-----
/etc/cron.daily/rhsmd:

sleep: missing operand
Try 'sleep --help' for more information.
/etc/cron.daily/rhsmd: line 19:  3825 Terminated              /usr/libexec/rhsmd -s
-----

This was due to subscription-manager being updated.

Version-Release number of selected component (if applicable):

subscription-manager-1.24.26-1.el7.x86_64


How reproducible:

Always

Steps to Reproduce:

1. Run the script

Additional info:

'if [ -n $config ]' should be 'if [ -n "$config" ]'

Please also see bug #1803794, which was reported a month and a half ago against RHEL8.2 beta

Comment 2 Dennixx 2020-04-01 08:03:09 UTC
I see there's an even older bugreport on this: bug #1794653

Comment 3 Rehana 2020-04-06 16:13:43 UTC

*** This bug has been marked as a duplicate of bug 1803794 ***