Move VM dirs under state/vms

This commit is contained in:
Thales Maciel 2026-01-29 14:47:09 -03:00
parent 75f03aeb04
commit f8e7aedeb2
No known key found for this signature in database
GPG key ID: 33112E6833C34679
8 changed files with 11 additions and 10 deletions

View file

@ -30,7 +30,7 @@ if ! ./run.sh; then
exit 1
fi
VM_DIR="$(find state -maxdepth 1 -type d -name 'vm-*' -printf '%T@ %p\n' 2>/dev/null | sort -nr | head -n 1 | awk '{print $2}')"
VM_DIR="$(find state/vms -maxdepth 1 -mindepth 1 -type d -printf '%T@ %p\n' 2>/dev/null | sort -nr | head -n 1 | awk '{print $2}')"
if [[ -z "$VM_DIR" ]]; then
log "no VM state directory found"
exit 1