12 lines
281 B
Bash
Executable file
12 lines
281 B
Bash
Executable file
#!/bin/sh
|
|
# Restore VMs to a snapshot.
|
|
#
|
|
# Usage:
|
|
# scripts/reset.sh # restore to "initialized"
|
|
# scripts/reset.sh provisioned # restore to "provisioned"
|
|
set -eu
|
|
. "$(dirname "$0")/env.sh"
|
|
|
|
label="${1:-initialized}"
|
|
|
|
exec "$SCRIPT_DIR/vm/restore.sh" "$label"
|