mirror of
https://gitlab.com/itsulu-odoo/runboat.git
synced 2026-05-30 23:41:27 +00:00
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
|
||||
|
||||
# Remove initialization sentinel, in case we are reinitializing.
|
||||
rm -fr /mnt/data/initialized
|
||||
# Remove initialization sentinel and data, in case we are reinitializing.
|
||||
rm -fr /mnt/data/*
|
||||
|
||||
# Remove addons dir, in case we are reinitializing after a previously
|
||||
# failed installation.
|
||||
|
|
@ -25,7 +25,6 @@ else
|
|||
fi
|
||||
|
||||
# Keep a copy of the venv that we can re-use for shorter startup time.
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -yqq install rsync
|
||||
rsync -a --delete /opt/odoo-venv/ /mnt/data/odoo-venv
|
||||
cp -ar /opt/odoo-venv/ /mnt/data/odoo-venv
|
||||
|
||||
touch /mnt/data/initialized
|
||||
|
|
|
|||
Loading…
Reference in a new issue