packaging: fix RPM check for fluent bit
@@ -7,14 +7,14 @@ if [ "$SKIP_TEST" = "yes" ]; then
fi
echo "Check package installed"
-rpm -q td-agent-bit || dpkg -l td-agent-bit
+rpm -q fluent-bit || rpm -q td-agent-bit || dpkg -l fluent-bit || dpkg -l td-agent-bit
echo "Check service enabled"
-systemctl is-enabled td-agent-bit
+systemctl is-enabled fluent-bit || systemctl is-enabled td-agent-bit
until systemctl is-system-running; do
sleep 10
done
echo "Check service running"
-systemctl status -q --no-pager td-agent-bit
+systemctl status -q --no-pager fluent-bit || systemctl status -q --no-pager td-agent-bit
