From 5a795ef78036ac543dbce366ec6557b674a6bdd3 Mon Sep 17 00:00:00 2001 From: Valentin Chaboche Date: Tue, 15 Apr 2025 14:32:39 +0200 Subject: [PATCH] Packages/Debian: purge logs and tezos-client for baker packages --- scripts/packaging/octez/debian/octez-agnostic-baker.postrm | 5 +++++ scripts/packaging/octez/debian/octez-baker.postrm | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/scripts/packaging/octez/debian/octez-agnostic-baker.postrm b/scripts/packaging/octez/debian/octez-agnostic-baker.postrm index 08c87c94ca10..4ea82ae34e4e 100755 --- a/scripts/packaging/octez/debian/octez-agnostic-baker.postrm +++ b/scripts/packaging/octez/debian/octez-agnostic-baker.postrm @@ -19,6 +19,11 @@ purge) # Purge debconf data for the package in any case # shellcheck disable=SC2119 db_purge || true + rm -f "/var/tezos/.tezos-client/*_highwatermarks" + rm -f "/var/tezos/.tezos-client/*_stateful_nonces" + rm -Rf "/var/tezos/.tezos-client/logs" + rm -f /var/log/tezos/accuser*.log + rm -f /var/log/tezos/agnostic-baker.log echo "Octez agnostic baker purged" ;; upgrade) diff --git a/scripts/packaging/octez/debian/octez-baker.postrm b/scripts/packaging/octez/debian/octez-baker.postrm index bfa58de28e6d..8959e8829076 100755 --- a/scripts/packaging/octez/debian/octez-baker.postrm +++ b/scripts/packaging/octez/debian/octez-baker.postrm @@ -19,6 +19,11 @@ purge) # Purge debconf data for the package in any case # shellcheck disable=SC2119 db_purge || true + rm -f "/var/tezos/.tezos-client/*_highwatermarks" + rm -f "/var/tezos/.tezos-client/*_stateful_nonces" + rm -Rf "/var/tezos/.tezos-client/logs" + rm -f /var/log/tezos/accuser*.log + rm -f /var/log/tezos/baker*.log echo "Octez baker purged" ;; upgrade) -- GitLab