diff --git a/CHANGELOG.md b/CHANGELOG.md index c7f7675aa57..03e33916b34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ * [BUGFIX] Query-scheduler: don't retain connections from queriers that have shut down, leading to gradually increasing enqueue latency over time. #6100 #6145 * [BUGFIX] Ingester: prevent query logic from continuing to execute after queries are canceled. #6085 * [BUGFIX] Ensure correct nesting of children of the `querier.Select` tracing span. #6085 +* [BUGFIX] Packaging: fix preremove script preventing upgrades on RHEL based OS. #6067 ### Mixin diff --git a/packaging/nfpm/mimir/preremove.sh b/packaging/nfpm/mimir/preremove.sh index 503503ad68e..fac4853454a 100644 --- a/packaging/nfpm/mimir/preremove.sh +++ b/packaging/nfpm/mimir/preremove.sh @@ -17,6 +17,10 @@ upgrade() { : } +purge() { + : +} + # Step 2, check if this is a clean install or an upgrade action="$1" @@ -24,11 +28,13 @@ case "$action" in "0" | "remove") uninstall ;; - "2" | "upgrade") + "1" | "upgrade") upgrade ;; + "purge") + purge + ;; *) - echo "Unsupported action: ${action}" - exit 1 + echo "Unsupported action: ${action}. ignoring." ;; esac