summaryrefslogtreecommitdiff
path: root/debian/postrm
diff options
context:
space:
mode:
authorChristophe Monniez <moc@odoo.com>2018-06-15 11:48:43 +0200
committerChristophe Monniez <moc@odoo.com>2018-06-15 11:58:06 +0200
commit27e7d24256c0674a576d55d1cc0aa914503321d9 (patch)
tree6c7628a5c789fe983b6089019f8b5306ec1a447e /debian/postrm
parent90165e2d96ac27dd1dbb2e367d47b8a38b7aea40 (diff)
[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
Diffstat (limited to 'debian/postrm')
-rw-r--r--debian/postrm3
1 files changed, 0 insertions, 3 deletions
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)