use cp instead of rsync to preserve odoo-venv

Rsync is not present in the oca/oca-ci image and installing
it sometimes failed due to outdated deb package information.
This commit is contained in:
Stéphane Bidoul 2022-03-13 11:39:41 +01:00
parent c5b2d215d7
commit bc06e08b5f
No known key found for this signature in database
GPG key ID: BCAB2555446B5B92

View file

@ -2,8 +2,8 @@
set -exo pipefail set -exo pipefail
# Remove initialization sentinel, in case we are reinitializing. # Remove initialization sentinel and data, in case we are reinitializing.
rm -fr /mnt/data/initialized rm -fr /mnt/data/*
# Remove addons dir, in case we are reinitializing after a previously # Remove addons dir, in case we are reinitializing after a previously
# failed installation. # failed installation.
@ -25,7 +25,6 @@ else
fi fi
# Keep a copy of the venv that we can re-use for shorter startup time. # Keep a copy of the venv that we can re-use for shorter startup time.
DEBIAN_FRONTEND=noninteractive apt-get -yqq install rsync cp -ar /opt/odoo-venv/ /mnt/data/odoo-venv
rsync -a --delete /opt/odoo-venv/ /mnt/data/odoo-venv
touch /mnt/data/initialized touch /mnt/data/initialized