From: garciadeblas Date: Wed, 3 Feb 2021 15:28:02 +0000 (+0000) Subject: Minor fixes in update-juju-lxc-images to get it work in v8.0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=5f02811bbbf83c509e988818c4e3991e322bdd6e;p=osm%2Fdevops.git Minor fixes in update-juju-lxc-images to get it work in v8.0 Change-Id: If34b5f0196dbc1ce113747f49f3d40857f99b42d Signed-off-by: garciadeblas --- diff --git a/installers/update-juju-lxc-images b/installers/update-juju-lxc-images index 88be1271..18f85c98 100755 --- a/installers/update-juju-lxc-images +++ b/installers/update-juju-lxc-images @@ -98,6 +98,7 @@ function cache() { alias=juju/$series/amd64 lxc delete $container -f || true + lxc image copy ubuntu:$series local: --alias clean-$series lxc launch ubuntu:$series $container sleep 15 # wait for network @@ -121,6 +122,7 @@ function cache() { lxc stop $container lxc image delete $alias || true + lxc image delete clean-$series || true lxc publish $container --alias $alias description="$series juju dev image ($(date +%Y%m%d))" lxc delete $container -f || true