Skip to content

Commit

Permalink
Enable UI automation by default (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
edigaryev authored Mar 19, 2024
1 parent 08d9f60 commit 9b2a899
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/automationmodetool.expect
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/expect -f

spawn automationmodetool enable-automationmode-without-authentication
expect "Enter the password for user 'admin':"
send "admin\n"
expect "Setting up machine to allow Automation Mode without requiring user authentication... succeeded."
5 changes: 5 additions & 0 deletions templates/base.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,9 @@ build {
"brew install awscli"
]
}

# Enable UI automation, see https://github.com/cirruslabs/macos-image-templates/issues/136
provisioner "shell" {
script = "scripts/automationmodetool.expect"
}
}

0 comments on commit 9b2a899

Please sign in to comment.