1
1

Spawn lnplay from image if exists.

This commit is contained in:
Derek Smith 2023-12-17 16:50:41 -05:00
parent 56916a7d33
commit 7abf79e0a7
Signed by: farscapian
GPG Key ID: B443E530A14E1C90

View File

@ -80,9 +80,11 @@ if ! incus list --format csv | grep -q "$INCUS_VM_NAME"; then
bash -c "./stub_profile.sh --vm=$VIRTUAL_MACHINE --incus-hostname=$INCUS_VM_NAME --ss-volume-name=$SSDATA_VOLUME_NAME --backup-volume-name=$BACKUP_VOLUME_NAME"
# now let's create a new VM to work with.
#incus init -q --profile="$INCUS_VM_NAME" "$BASE_IMAGE_VM_NAME" "$INCUS_VM_NAME" --vm
incus init "$DOCKER_BASE_IMAGE_NAME" "$INCUS_VM_NAME" --vm --profile="$INCUS_VM_NAME"
if ! incus image list -q --format csv | grep -q "$INCUS_VM_NAME"; then
incus init -q "$DOCKER_BASE_IMAGE_NAME" "$INCUS_VM_NAME" --vm --profile="$INCUS_VM_NAME"
elif [ "$VIRTUAL_MACHINE" = lnplayserver ]; then
incus init -q "$INCUS_VM_NAME" "$INCUS_VM_NAME" --vm --profile="$INCUS_VM_NAME"
fi
# let's PIN the HW address for now so we don't exhaust IP
# and so we can set DNS internally.