1
1

Ensure initial image copy goes to default project.

This commit is contained in:
Derek Smith 2023-09-15 09:46:32 -04:00
parent 972a2df31e
commit e5bdd0d6a5
Signed by: farscapian
GPG Key ID: B443E530A14E1C90

View File

@ -14,7 +14,7 @@ fi
# let's download our base image.
if ! lxc image list --format csv --columns l | grep -q "$UBUNTU_BASE_IMAGE_NAME"; then
# copy the image down from canonical.
lxc image copy "images:$BASE_LXC_IMAGE" "$REMOTE_NAME": --alias "$UBUNTU_BASE_IMAGE_NAME" --public --vm --auto-update
lxc image copy "images:$BASE_LXC_IMAGE" "$REMOTE_NAME": --alias "$UBUNTU_BASE_IMAGE_NAME" --public --vm --auto-update --target-project default
fi
# If the lxc VM does exist, then we will delete it (so we can start fresh)