Wait containers

This commit is contained in:
Kay0u 2020-03-28 22:57:00 +01:00
parent adeaf4143a
commit 2bcd90895d
No known key found for this signature in database
GPG key ID: AE1DCADB6415A156

View file

@ -68,6 +68,7 @@ rotate_image()
if [ $should_restart = 1 ] if [ $should_restart = 1 ]
then then
lxc start "$instance_to_publish" lxc start "$instance_to_publish"
wait_container "$instance_to_publish"
fi fi
} }
@ -94,8 +95,6 @@ rebuild_base_containers()
rotate_image "$base_image_to_rebuild-tmp" "$base_image_to_rebuild-before-install" rotate_image "$base_image_to_rebuild-tmp" "$base_image_to_rebuild-before-install"
wait_container "$base_image_to_rebuild-tmp"
if [[ "$debian_version" == "buster" ]] if [[ "$debian_version" == "buster" ]]
then then
INSTALL_SCRIPT="https://raw.githubusercontent.com/YunoHost/install_script/buster-unstable/install_yunohost" INSTALL_SCRIPT="https://raw.githubusercontent.com/YunoHost/install_script/buster-unstable/install_yunohost"
@ -107,8 +106,6 @@ rebuild_base_containers()
rotate_image "$base_image_to_rebuild-tmp" "$base_image_to_rebuild-before-postinstall" rotate_image "$base_image_to_rebuild-tmp" "$base_image_to_rebuild-before-postinstall"
wait_container "$base_image_to_rebuild-tmp"
# Running post Install # Running post Install
lxc exec "$base_image_to_rebuild-tmp" -- /bin/bash -c "yunohost tools postinstall -d domain.tld -p the_password --ignore-dyndns" lxc exec "$base_image_to_rebuild-tmp" -- /bin/bash -c "yunohost tools postinstall -d domain.tld -p the_password --ignore-dyndns"