1
1
Fork 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 923134dc2c
commit c4b96e73b0
Signed by: farscapian
GPG Key ID: B443E530A14E1C90
1 changed files with 1 additions and 1 deletions

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)