Bug 1213775

Summary: Error for CASE statement in /etc/cron.monthly/suse.de-sarg
Product: [openSUSE] openSUSE Distribution Reporter: James Moe <jimoe>
Component: BasesystemAssignee: Thomas Abraham <tabraham>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Leap 15.5   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Leap 15.5   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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.