Skip to content

Commit 27e7d24

Browse files
committed
[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 odoo#22138
1 parent 90165e2 commit 27e7d24

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

debian/postrm

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ case "${1}" in
1010
remove)
1111
deluser --quiet --system $ODOO_USER || true
1212
delgroup --quiet --system --only-if-empty $ODOO_GROUP || true
13-
if [ -d "$ODOO_LIB_DIR" ]; then
14-
rm -rf $ODOO_LIB_DIR
15-
fi
1613
;;
1714

1815
purge)

0 commit comments

Comments
 (0)