Package: release.debian.org Severity: normal User: release.debian....@packages.debian.org Usertags: unblock
Please unblock package odoo [ Reason ] Remove log dir upon purging (closing #985873). [ Impact ] Without this fix, /var/log/odoo remains on the system after the package is purged. [ Tests ] No automated test. [ Risks ] None AFAICT. [ Checklist ] [X] all changes are documented in the d/changelog [X] I reviewed all changes and I approve them [X] attach debdiff against the package in testing unblock odoo/14.0.0+dfsg.2-6 Debdiff inlined: diff --git a/debian/changelog b/debian/changelog index 19b80e85f15..0099dfdc451 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +odoo (14.0.0+dfsg.2-6) unstable; urgency=medium + + [ Sébastien Delafond ] + * Remove /var/log/odoo upon purging (Closes: #985873) + + -- Sebastien Delafond <s...@debian.org> Mon, 29 Mar 2021 11:57:40 +0200 + odoo (14.0.0+dfsg.2-5) unstable; urgency=medium [ Sébastien Delafond ] diff --git a/debian/postinst b/debian/postinst old mode 100644 new mode 100755 diff --git a/debian/postrm b/debian/postrm old mode 100644 new mode 100755 index 274a488c1bf..d1a4fb0bcea --- a/debian/postrm +++ b/debian/postrm @@ -3,6 +3,7 @@ set -e ODOO_LIB_DIR=/var/lib/odoo +ODOO_LOG_DIR=/var/log/odoo ODOO_USER="odoo" ODOO_GROUP="odoo" @@ -16,6 +17,9 @@ case "${1}" in if [ -d "$ODOO_LIB_DIR" ]; then rm -rf $ODOO_LIB_DIR fi + if [ -d "$ODOO_LOG_DIR" ]; then + rm -rf $ODOO_LOG_DIR + fi ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)