cronjob fails in dash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ocsinventory-agent (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
* Impact
The cronjob included in the package errors out due to incorrect shell syntax
* Testcase
$ sudo /etc/cron.
triggered manually or by cron should work without error
* Regression potential
The job depends on bash now and wouldn't work on system without that shell installed. It's unlikely that bash isn't going to be installed though and even in that case it wouldn't be a regression since the script is already not working
-------
Ubuntu 22.04 comes with ocsinventory-agent in version 2:2.8-2. In this version /etc/cron.
```
$ dash /etc/cron.
/etc/cron.
```
There is also an older debian bug: https:/
Related branches
- Sebastien Bacher (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 127 lines (+35/-2) (has conflicts)5 files modifiedMakefile.PL (+6/-1)
debian/changelog (+13/-0)
debian/control (+10/-0)
debian/ocsinventory-agent.cron.daily (+5/-0)
ocsinventory-agent (+1/-1)
Changed in ocsinventory-agent (Ubuntu): | |
status: | Fix Released → Confirmed |
description: | updated |
Changed in ocsinventory-agent (Ubuntu): | |
status: | Confirmed → Fix Released |
importance: | Undecided → Low |
description: | updated |
This bug was fixed in the package ocsinventory-agent - 2:2.10.0-3
---------------
ocsinventory-agent (2:2.10.0-3) unstable; urgency=medium
* Team upload. ccflags. patch: update buildflags handling.
* Use /bin/bash instead of /bin/sh in cronjob as the script uses a
bashism. (Closes: #988245) (LP: #2004007)
* Declare compliance with Debian Policy 4.6.2.
* Drop unneeded (alternative) (test) dependencies.
* Annotate test-only build dependencies with <!nocheck>.
* Refresh propagate-
-- gregor herrmann <email address hidden> Sun, 29 Jan 2023 02:43:30 +0100