[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) <moc@odoo.com>
This commit is contained in:
Christophe Monniez
2021-10-08 22:11:47 +00:00
parent f78b6d00af
commit 7e1e0f16e6
+1 -1
View File
@@ -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