Project

General

Profile

Actions

Bug #5066

closed

Missing dependency on which

Added by Lionel Le Folgoc over 10 years ago. Updated over 9 years ago.

Status:
Released
Priority:
1 (highest)
Assignee:
Jonathan CLARKE
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Hi again again,

In rudder-agent-thin (maybe rudder-agent too), /opt/rudder/bin/run-inventory calls the "which" command:

[... blablabla]
if [ -x /opt/rudder/bin/perl ]; then
[...]
elif which fusioninventory-agent > /dev/null 2>&1; then
[...]
else

  # No usable FusionInventory installation has been detected, bail out.
  echo "[ERROR] No usable FusionInventory instance (either from Rudder or the system) detected." 
  exit 1

fi

The test was failing here because the "which" package wasn't installed. Maybe it's worth adding a dependency?

Thanks.

Actions

Also available in: Atom PDF