daily cron job fails due to bash-ism
Bug #1984791 reported by
cleary
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OCS Inventory: Agent Deployment Tool |
New
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 22.04 LTS "jammy"
The cron.daily script fails to run:
$ sudo /etc/cron.
+ PROG=/usr/
+ [ ! -x /usr/bin/
/etc/cron.
The arithmetic expression in question is:
sleep $(( $RANDOM/100 ))
--
Which works fine in bash, but does not work in /bin/sh (pointing to dash by default)
The shebang in the daily cron script is:
#!/bin/sh
To post a comment you must log in.