Bug 1213775 - Error for CASE statement in /etc/cron.monthly/suse.de-sarg
Summary: Error for CASE statement in /etc/cron.monthly/suse.de-sarg
Status: NEW
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Leap 15.5
Hardware: x86-64 openSUSE Leap 15.5
: P5 - None : Minor (vote)
Target Milestone: ---
Assignee: Thomas Abraham
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-29 05:26 UTC by James Moe
Modified: 2023-10-11 10:07 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Moe 2023-07-29 05:26:06 UTC
What is missing in the following case that would cause the error:
----[ error message ]----
running monthly cronjob scripts
SCRIPT: suse.de-sarg exited with RETURNCODE = 1.
SCRIPT: output (stdout && stderr) follows

Failed to determine cron frequency [/etc/cron.monthly/suse.de-sarg]
SCRIPT: suse.de-sarg
----[ end ]----

case "$CRON_FREQ" in
    daily) ;;
    montly) ;;
    weekly) ;;
    *)
        echo "Failed to determine cron frequency [$0]" 1>&2
        exit 1
        ;;
esac

Why, "montly" of course!
I had fixed it locally. It got overwritten during the upgrade to 15.5 from 15.4.
Comment 1 Danilo Spinella 2023-10-11 10:07:59 UTC
Since this is a bug in sarg package, I am assigning it to sarg maintainer.