From 68120f1772e8f8131ed5e3705dabafba0d886bac Mon Sep 17 00:00:00 2001 From: Evgeniy Antonyuk Date: Mon, 9 Dec 2024 15:40:17 +0300 Subject: [PATCH] Fix fluent-bit repository error for Fedora --- install/OneClickInstall/install-RedHat/install-preq.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install/OneClickInstall/install-RedHat/install-preq.sh b/install/OneClickInstall/install-RedHat/install-preq.sh index 2a96a07ece..ebe5fb5841 100644 --- a/install/OneClickInstall/install-RedHat/install-preq.sh +++ b/install/OneClickInstall/install-RedHat/install-preq.sh @@ -95,8 +95,7 @@ alternatives --install /usr/bin/java java "$JAVA_PATH" 100 && alternatives --set #add repo, install fluent-bit if [ ${INSTALL_FLUENT_BIT} == "true" ]; then - curl https://raw.githubusercontent.com/fluent/fluent-bit/master/install.sh | bash - [ "$DIST" = "fedora" ] && rm -f /etc/yum.repos.d/fluent-bit.repo + [ "$DIST" != "fedora" ] && curl https://raw.githubusercontent.com/fluent/fluent-bit/master/install.sh | bash || yum -y install fluent-bit ${package_manager} -y install opensearch-dashboards-${DASHBOARDS_VERSION} --enablerepo=opensearch-dashboards-2.x fi