Skip to content

Commit

Permalink
fix(install-script): fix fips uninstaller (#146)
Browse files Browse the repository at this point in the history
This commit fixes an issue in the install script where the fips package
can be installed and upgraded, but not removed, as the specified package
name is incorrect in the uninstall function.

Signed-off-by: Eric Chlebek <echlebek@sumologic.com>
  • Loading branch information
echlebek authored Jan 23, 2025
1 parent 751f514 commit 9b1274e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install-script/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -626,13 +626,13 @@ function uninstall_darwin() {
function uninstall_linux() {
case $(get_package_manager) in
yum | dnf)
yum remove --quiet -y otelcol-sumo
yum remove --quiet -y "${package_name}"
;;
apt-get)
if [[ "${PURGE}" == "true" ]]; then
apt-get purge --quiet -y otelcol-sumo
apt-get purge --quiet -y "${package_name}"
else
apt-get remove --quiet -y otelcol-sumo
apt-get remove --quiet -y "${package_name}"
fi
;;
esac
Expand Down

0 comments on commit 9b1274e

Please sign in to comment.