Reflect passlib depreciation in Odoo install.sh

This commit is contained in:
Disassembler 2020-03-20 22:32:46 +01:00
parent 0790a9243b
commit f63e78a800
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -35,7 +35,7 @@ done
kill ${ODOO_PID} kill ${ODOO_PID}
# Update admin account # Update admin account
export ODOO_ADMIN_HASH=$(spoc-container exec odoo -- python -c "from passlib.hash import pbkdf2_sha512;print(pbkdf2_sha512.encrypt('${ODOO_ADMIN_PWD}'))") export ODOO_ADMIN_HASH=$(spoc-container exec odoo -- python -c "from passlib.hash import pbkdf2_sha512;print(pbkdf2_sha512.hash('${ODOO_ADMIN_PWD}'))")
envsubst <adminpwd.sql | spoc-container exec odoo-postgres -- psql odoo envsubst <adminpwd.sql | spoc-container exec odoo-postgres -- psql odoo
# Stop services required for setup # Stop services required for setup