Fix Windows VM timezone and add a confirmation prompt before removing the VM (#4489)

* Add confirmation prompt before removing Windows VM

* Fix Windows VM timezone defaults to UTC
This commit is contained in:
Pierre Olivier Martel
2026-02-04 04:46:15 -05:00
committed by GitHub
parent cf72c02ea5
commit 9581cce1af

View File

@@ -185,6 +185,8 @@ services:
DISK_SIZE: "$SELECTED_DISK"
USERNAME: "$USERNAME"
PASSWORD: "$PASSWORD"
TZ: "$(timedatectl show -p Timezone --value 2>/dev/null || echo UTC)"
ARGUMENTS: "-rtc base=localtime,clock=host,driftfix=slew"
devices:
- /dev/kvm
- /dev/net/tun
@@ -240,6 +242,11 @@ EOF
}
remove_windows() {
if ! gum confirm --default=false "Remove Windows VM and delete all associated data?"; then
echo "Removal cancelled by user"
exit 1
fi
echo "Removing Windows VM..."
docker-compose -f "$COMPOSE_FILE" down 2>/dev/null || true