Comment 0 for bug 2004007

Revision history for this message
Daniel Krambrock (danielky) wrote :

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