mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
71709e5ef9
This pull request addresses a key aspect of the RPM upgrade process - handling of scripts during upgrades vice pure deletion events. An RPM upgrade operation consists of both an Install and an Uninstall operation, meaning that during an upgrade, our %postun script is run and previously, it was causing the accidental deletion of binaries needed for the upgrade. To prevent this unwanted removal during upgrade scenarios, the %postun script now checks for the execution scenario in which it finds itself.
1 line
264 B
Plaintext
1 line
264 B
Plaintext
* Add a conditional check in the %postun script to prevent file deletion during RPM upgrade. The check ensures that files and directories are only removed during a full uninstall ( equals 0), safeguarding necessary files from unintended deletion during an upgrade. |