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:
parent
c5b2d215d7
commit
bc06e08b5f
1 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue