From e5bdd0d6a5ec52e4de4e6cfb23841549009b0899 Mon Sep 17 00:00:00 2001 From: Derek Smith Date: Fri, 15 Sep 2023 09:46:32 -0400 Subject: [PATCH] Ensure initial image copy goes to default project. --- deployment/create_lxc_base.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/create_lxc_base.sh b/deployment/create_lxc_base.sh index 549eb78..3738603 100755 --- a/deployment/create_lxc_base.sh +++ b/deployment/create_lxc_base.sh @@ -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)