From 2eaf4bde6665fad997e530ecee36aba554fb667a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sat, 26 Feb 2022 16:32:17 +0100 Subject: [PATCH] Add ADDONS_DIR to ADDONS_PATH --- src/runboat/kubefiles/runboat-start.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/runboat/kubefiles/runboat-start.sh b/src/runboat/kubefiles/runboat-start.sh index 55fe4e2..37aa7af 100755 --- a/src/runboat/kubefiles/runboat-start.sh +++ b/src/runboat/kubefiles/runboat-start.sh @@ -14,6 +14,12 @@ fi # show what is installed (the venv in /opt/odoo-venv has been mounted) pip list +# Add ADDONS_DIR to addons_path (because that oca_install_addons did, +# but $ODOO_RC is not on a persistent volume, so it is lost when we +# start in another container). +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)