Skip to content

Commit

Permalink
Allow non-existent user/group untill 5.0.2 release is released
Browse files Browse the repository at this point in the history
Co-authored-by: Daijiro Fukuda <[email protected]>
  • Loading branch information
kenhys and daipom authored Nov 17, 2023
1 parent 435453e commit 61a8e40
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions fluent-package/yum/install-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,18 @@ for conf_path in /etc/td-agent/td-agent.conf /etc/fluent/fluentd.conf; do
fi
done

getent passwd fluentd >/dev/null
getent group fluentd >/dev/null
case $1 in
local)
getent passwd fluentd >/dev/null
getent group fluentd >/dev/null
;;
*)
# TODO: Remove this branch after the following fix is applied to the latest release.
# https://github.com/fluent/fluent-package-builder/pull/598
(! getent passwd fluentd >/dev/null)
(! getent group fluentd >/dev/null)
;;
esac

if [ $ENABLE_UPGRADE_TEST -eq 1 ]; then
echo "UPGRADE TEST from v4"
Expand Down

0 comments on commit 61a8e40

Please sign in to comment.