From ea6b37a0eb8431012e6489454a190fda09d547b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sat, 20 Nov 2021 15:07:05 +0100 Subject: [PATCH] Remove addons dir before clone So we can re-trigger after a failed installation. --- src/runboat/kubefiles/runboat-clone-and-install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/runboat/kubefiles/runboat-clone-and-install.sh b/src/runboat/kubefiles/runboat-clone-and-install.sh index 4c19b49..447cdb1 100755 --- a/src/runboat/kubefiles/runboat-clone-and-install.sh +++ b/src/runboat/kubefiles/runboat-clone-and-install.sh @@ -11,6 +11,10 @@ if [ -f /mnt/data/initialized ] ; then exit 0 fi +# Remove addons dir, in case we are reinitializing after a previously +# failed installation. +rm -fr $ADDONS_DIR + # # Clone an addons repository at git reference in $ADDONS_DIR. # Run oca_install_addons on it.