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
Ubuntu 22.04 comes with ocsinventory-agent in version 2:2.8-2. In this version /etc/cron. daily/ocsinvent ory-agent holds the `$RANDOM` bashism. As `/bin/sh` links to `dash` by default the script exits with an error:
``` daily/ocsinvent ory-agent daily/ocsinvent ory-agent: 19: arithmetic expression: expecting primary: " /100 "
$ dash /etc/cron.
/etc/cron.
```
There is also an older debian bug: https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 988245