Public bug reported: Ubuntu 22.04 comes with ocsinventory-agent in version 2:2.8-2. In this version /etc/cron.daily/ocsinventory-agent holds the `$RANDOM` bashism. As `/bin/sh` links to `dash` by default the script exits with an error:
``` $ dash /etc/cron.daily/ocsinventory-agent /etc/cron.daily/ocsinventory-agent: 19: arithmetic expression: expecting primary: " /100 " ``` There is also an older debian bug: https://bugs.debian.org/cgi- bin/bugreport.cgi?bug=988245 ** Affects: ocsinventory-agent (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Debian Perl Group, which is subscribed to ocsinventory-agent in Ubuntu. https://bugs.launchpad.net/bugs/2004007 Title: cronjob fails in dash To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ocsinventory-agent/+bug/2004007/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~pkg-perl-maintainers Post to : [email protected] Unsubscribe : https://launchpad.net/~pkg-perl-maintainers More help : https://help.launchpad.net/ListHelp

