Skip to content

Commit

Permalink
Set the default virtual machine timezone to GMT.
Browse files Browse the repository at this point in the history
Reading the current timezone from the host system requires root privileges and is therefore not possible.
  • Loading branch information
theoriginalgri committed Mar 18, 2023
1 parent 3215198 commit 6706b27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,8 @@ done
echo "Updating hostname"
_ssh "sudo scutil --set HostName $VM_ID && sudo scutil --set ComputerName $VM_ID && sudo scutil --set LocalHostName $VM_ID && sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string $VM_ID"

echo "Updating timezone to GMT"
_ssh "sudo systemsetup -settimezone GMT"

echo "Installing gitlab-runner for artifact uploads"
_ssh "brew install gitlab-runner"

0 comments on commit 6706b27

Please sign in to comment.