From bc06e08b5fc696bbb5551f13c28712e7ebb3ecfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 13 Mar 2022 11:39:41 +0100 Subject: [PATCH] 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. --- src/runboat/kubefiles/runboat-clone-and-install.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/runboat/kubefiles/runboat-clone-and-install.sh b/src/runboat/kubefiles/runboat-clone-and-install.sh index 3b1b05a..a60da2b 100755 --- a/src/runboat/kubefiles/runboat-clone-and-install.sh +++ b/src/runboat/kubefiles/runboat-clone-and-install.sh @@ -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