[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#986081: marked as done (unblock: odoo/14.0.0+dfsg.2-6)



Your message dated Tue, 30 Mar 2021 18:32:15 +0000
with message-id <E1lRJ9z-0000j3-Nj@respighi.debian.org>
and subject line unblock odoo
has caused the Debian Bug report #986081,
regarding unblock: odoo/14.0.0+dfsg.2-6
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
986081: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986081
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
User: release.debian.org@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 <seb@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)

--- End Message ---
--- Begin Message ---
Unblocked.

--- End Message ---

Reply to: