Bug #25498
closedHooks are not executed anymore from their directory
Description
In Rudder 8.1, the execution path ("cwd") of hooks has changed.
They used to be seen as executed from their parent directory, so that for example "/opt/rudder/etc/hooks.d/policy-generation-finished/hello" was seen as executed from "/opt/rudder/etc/hooks.d/policy-generation-finished/hello".
Now, they are seen as executed from "/root".
Updated by François ARMAND 2 months ago
This might be linked to an update to nuprocess, since we don't seem to fix the CWD, while now, there is a:NuProcessBuilder.setCwd(Path cwd)
: Set the Path to which the current working directory (cwd) of the subsequent launch of a NuProcess will be set when calling the start() method.
Updated by François ARMAND 2 months ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder/pull/5889
Updated by Anonymous 2 months ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|102562185c10849e3947b56c8654372537954d89.
Updated by Vincent MEMBRÉ about 2 months ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 8.1.7 which was released today.