Skip to content

Commit

Permalink
[FIX] packaging: fix python abi detection in rpm
Browse files Browse the repository at this point in the history
Although the ABI detection was fixed in install, it was forgotten in
post install script.

closes odoo#78010

Signed-off-by: Christophe Monniez (moc) <[email protected]>
  • Loading branch information
d-fence committed Oct 8, 2021
1 parent 248762c commit 3a4e98b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup/redhat/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a4e98b

Please sign in to comment.