[FIX] debian package dependencies not available

the Debian package dependencies where only installed during the
initialization phase, not the deployement -> install them
at that point.

closes: #23
This commit is contained in:
Alexandre Fayolle 2021-11-26 15:36:45 +01:00
parent b592ecb327
commit 597f6b0eb8

View file

@ -5,12 +5,12 @@ set -ex
# If it exists, copy the previously initialized venv. # If it exists, copy the previously initialized venv.
if [ -f /mnt/data/initialized ] ; then if [ -f /mnt/data/initialized ] ; then
#rsync -a --delete /mnt/data/odoo-venv/ /opt/odoo-venv
pip list pip list
# issue#23: install debian package dependencies (hack oca_install_addons to only # Install 'deb' external dependencies of all Odoo addons found in path.
# install deb) DEBIAN_FRONTEND=noninteractive apt-get install -qq --no-install-recommends $(oca_list_external_dependencies deb)
exit 0 exit 0
fi fi
DEBIAN_FRONTEND=noninteractive apt-get -yqq install rsync DEBIAN_FRONTEND=noninteractive apt-get -yqq install rsync
# Remove addons dir, in case we are reinitializing after a previously # Remove addons dir, in case we are reinitializing after a previously