From 2bcd90895d0afebf88358d7297c46facd3e9ba92 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Sat, 28 Mar 2020 22:57:00 +0100 Subject: [PATCH] Wait containers --- utils.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/utils.sh b/utils.sh index fdbcfbe..459ea62 100755 --- a/utils.sh +++ b/utils.sh @@ -68,6 +68,7 @@ rotate_image() if [ $should_restart = 1 ] then lxc start "$instance_to_publish" + wait_container "$instance_to_publish" fi } @@ -94,8 +95,6 @@ rebuild_base_containers() rotate_image "$base_image_to_rebuild-tmp" "$base_image_to_rebuild-before-install" - wait_container "$base_image_to_rebuild-tmp" - if [[ "$debian_version" == "buster" ]] then INSTALL_SCRIPT="https://raw.githubusercontent.com/YunoHost/install_script/buster-unstable/install_yunohost" @@ -107,15 +106,13 @@ rebuild_base_containers() rotate_image "$base_image_to_rebuild-tmp" "$base_image_to_rebuild-before-postinstall" - wait_container "$base_image_to_rebuild-tmp" - # Running post Install lxc exec "$base_image_to_rebuild-tmp" -- /bin/bash -c "yunohost tools postinstall -d domain.tld -p the_password --ignore-dyndns" rotate_image "$base_image_to_rebuild-tmp" "$base_image_to_rebuild-after-postinstall" lxc stop "$base_image_to_rebuild-tmp" - + lxc delete "$base_image_to_rebuild-tmp" }