Skip to content

Commit

Permalink
Switch test which depends on both of released/non-released(local) fix.
Browse files Browse the repository at this point in the history
Co-authored-by: Daijiro Fukuda <fukuda@clear-code.com>
  • Loading branch information
kenhys and daipom authored Nov 17, 2023
1 parent 15bf82e commit df27397
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions fluent-package/yum/systemd-test/install-newly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,18 @@ test -e /var/log/fluent/fluentd.log
sudo $DNF remove -y fluent-package
sudo systemctl daemon-reload

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
# `sudo systemctl daemon-reload` clears the service completely.
# (The result of `systemctl status` will be `unfound`)
# Note: RPM does not leave links like `@/etc/systemd/system/fluentd.service`.
Expand Down

0 comments on commit df27397

Please sign in to comment.