1
1
Fork 1

add LNPLAY_BASE_IMAGE_NAME

This commit is contained in:
Derek Smith 2023-10-19 22:47:32 -04:00
parent 2e060ed5ae
commit 59466556f7
Signed by: farscapian
GPG Key ID: B443E530A14E1C90
2 changed files with 4 additions and 2 deletions

View File

@ -7,3 +7,5 @@ export BASE_LXC_IMAGE="ubuntu/$LXD_UBUNTU_BASE_VERSION/cloud"
WEEK_NUMBER=$(date +%U)
export UBUNTU_BASE_IMAGE_NAME="ss-ubuntu-${LXD_UBUNTU_BASE_VERSION//./-}"
export DOCKER_BASE_IMAGE_NAME="ss-docker-${LXD_UBUNTU_BASE_VERSION//./-}-$WEEK_NUMBER"
export LNPLAY_BASE_IMAGE_NAME="ss-lnplay-$WEEK_NUMBER"
export LNPLAY_BASE_IMAGE_VM_NAME="$LNPLAY_BASE_IMAGE_NAME"

View File

@ -80,10 +80,10 @@ else
# done
# stop the VM and get a snapshot.
lxc stop "$BASE_IMAGE_VM_NAME" --project default
lxc stop "$BASE_IMAGE_VM_NAME" --project default > /dev/null
fi
lxc snapshot "$BASE_IMAGE_VM_NAME" "$UBUNTU_BASE_IMAGE_NAME" --project default
lxc snapshot "$BASE_IMAGE_VM_NAME" "$UBUNTU_BASE_IMAGE_NAME" --project default > /dev/null
fi