From 27e7d24256c0674a576d55d1cc0aa914503321d9 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Fri, 15 Jun 2018 11:48:43 +0200 Subject: [FIX] packaging: stop removing Odoo lib dir When removing Odoo Debian package, the directory /var/lib/odoo is also removed. This directory could contain important data like filestore or custom modules. With this commit, this directory is preserved on removal and deleted when the purge command is issued with a Debian package manager. Fixes #22138 --- debian/postrm | 3 --- 1 file changed, 3 deletions(-) (limited to 'debian') diff --git a/debian/postrm b/debian/postrm index 22f7211203f..274a488c1bf 100644 --- a/debian/postrm +++ b/debian/postrm @@ -10,9 +10,6 @@ case "${1}" in remove) deluser --quiet --system $ODOO_USER || true delgroup --quiet --system --only-if-empty $ODOO_GROUP || true - if [ -d "$ODOO_LIB_DIR" ]; then - rm -rf $ODOO_LIB_DIR - fi ;; purge) -- cgit v1.2.3