From 7e1e0f16e6a408a31d236d85f86b81079002b481 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Fri, 8 Oct 2021 13:53:16 +0000 Subject: [PATCH] [FIX] packaging: fix python abi detection in rpm Although the ABI detection was fixed in install, it was forgotten in post install script. closes odoo/odoo#78097 X-original-commit: 3a4e98b6fbf6dd3e88e94421496d5c15a517ff64 Signed-off-by: Christophe Monniez (moc) --- setup/redhat/postinstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/redhat/postinstall.sh b/setup/redhat/postinstall.sh index 82d31f09ead..31ae914d3cd 100644 --- a/setup/redhat/postinstall.sh +++ b/setup/redhat/postinstall.sh @@ -9,7 +9,7 @@ ODOO_GROUP="odoo" ODOO_LOG_DIR=/var/log/odoo ODOO_LOG_FILE=$ODOO_LOG_DIR/odoo-server.log ODOO_USER="odoo" -ABI=$(rpm -q --provides python3 | awk '/abi/ {print $NF}') +ABI=$(rpm -q --provides python3 | uniq | awk '/abi/ {print $NF}') if ! getent passwd | grep -q "^odoo:"; then groupadd $ODOO_GROUP