Merge pull request #79 from sbidoul/deb-deps-sbi

apt-get update before installing deb dependencies
This commit is contained in:
Stéphane Bidoul 2022-10-17 14:24:11 +02:00 committed by GitHub
commit fc94a620c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,14 @@ echo "addons_path=${ADDONS_PATH},${ADDONS_DIR}" >> ${ODOO_RC}
cat ${ODOO_RC}
# Install 'deb' external dependencies of all Odoo addons found in path.
DEBIAN_FRONTEND=noninteractive apt-get install -qq --no-install-recommends $(oca_list_external_dependencies deb)
# This is also something oca_install_addons did, but that is not persisted
# when we start in another container.
deb_deps=$(oca_list_external_dependencies deb)
if [ -n "$deb_deps" ]; then
apt-get update -qq
# Install 'deb' external dependencies of all Odoo addons found in path.
DEBIAN_FRONTEND=noninteractive apt-get install -qq --no-install-recommends ${deb_deps}
fi
oca_wait_for_postgres