Skip to content

Commit

Permalink
Fixes #19406: Broken agent postinst script
Browse files Browse the repository at this point in the history
  • Loading branch information
amousset committed Jun 8, 2021
1 parent 1af764c commit 9d4947e
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 9d4947e

Please sign in to comment.