RPM upgrade removes necessary binaries #14380
Labels
~backend
Backend-related issue.
bug
Something isn't working as documented
#g-endpoint-ops
Endpoint ops product group
:release
Ready to write code. Scheduled in a release. See "Making changes" in handbook.
~released bug
This bug was found in a stable release.
Milestone
Fleet version: all versions (orbit)
Web browser and operating system: N/A
💥 Actual behavior
RPM upgrades remove necessary binaries on accident due to the follwing
%postun
script:fleet/orbit/pkg/packaging/linux_shared.go
Line 364 in b50e193
🧑💻 Steps to reproduce
attempt to upgrade from one fleetd package to the next via
dnf
install🕯️ More info (optional)
details about
%postun
here https://stackoverflow.com/questions/7398834/rpm-upgrade-uninstalls-the-rpmand here https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/
Proposed solution
add conditional check on
%postun
script to only delete the files if the install is not an upgrade.The text was updated successfully, but these errors were encountered: