Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #19406: Broken agent postinst script #2495

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions rudder-agent/SOURCES/rudder-agent-postinst
Expand Up @@ -14,8 +14,9 @@ LOG_FILE="/var/log/rudder/install/rudder-agent-$(date +%Y%m%d%H%M%S).log"
# a postint unable to terminate (relevant at least on debian 7)
if [ -d /proc/self/fd ] && [ "$(uname -s)" != "SunOS" ]
then
for fd in /proc/self/fd/*; do
[ "${fd}" -gt 2 ] && eval "exec $fd>&-"
for f in /proc/self/fd/*; do
fd=$(basename "${f}")
[ "$fd" -gt 2 ] && eval "exec $fd>&-"
done
fi

Expand Down