Sha256: 8e4a2457855b7ce3198c2904678fa9d1cdb893761360030057fd4ca2af60c7ff

Contents?: true

Size: 1.41 KB

Versions: 16

Compression:

Stored size: 1.41 KB

Contents

#!/bin/sh
# Override the default behavior of sshd on the target volume to be not disabled
OVERRIDES_PLIST="$3/private/var/db/launchd.db/com.apple.launchd/overrides.plist"
/usr/libexec/PlistBuddy -c 'Delete :com.openssh.sshd' "$OVERRIDES_PLIST"
/usr/libexec/PlistBuddy -c 'Add :com.openssh.sshd:Disabled bool False' "$OVERRIDES_PLIST"

# Add vagrant to sudoers
cp "$3/etc/sudoers" "$3/etc/sudoers.orig"
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> "$3/etc/sudoers"

# Add vagrant to admin group memberships (even though GID 80 is enough for most things)
VAGRANT_GUID=$(/usr/libexec/PlistBuddy -c 'Print :generateduid:0' "$3/private/var/db/dslocal/nodes/Default/users/vagrant.plist")
VAGRANT_UID=$(/usr/libexec/PlistBuddy -c 'Print :uid:0' "$3/private/var/db/dslocal/nodes/Default/users/vagrant.plist")
/usr/libexec/PlistBuddy -c 'Add :groupmembers: string $VAGRANT_GUID' "$3/private/var/db/dslocal/nodes/Default/groups/admin.plist"

# Pre-create vagrant user folder so veewee will have somewhere to scp configinfo to
mkdir "$3/Users/vagrant"
chown $VAGRANT_UID:20 "$3/Users/vagrant"

# Suppress annoying iCloud welcome on a GUI login
/usr/bin/defaults write "$3/Users/vagrant/Library/Preferences/com.apple.SetupAssitant" DidSeeCloudSetup -bool true
/usr/bin/defaults write "$3/Users/vagrant/Library/Preferences/com.apple.SetupAssitant" LastSeenCloudProductVersion -string 10.8.2

# Disable the welcome screen
touch "$3/private/var/db/.AppleSetupDone"

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
veewee-0.5.0.alpha4 templates/OSX/prepare_veewee_iso/support/pkg-postinstall
veewee-0.5.0.alpha3 templates/OSX/prepare_veewee_iso/support/pkg-postinstall
veewee-0.5.0.alpha2 templates/OSX/prepare_veewee_iso/support/pkg-postinstall
veewee-0.5.0.alpha1 templates/OSX/prepare_veewee_iso/support/pkg-postinstall
veewee-0.4.5.1 templates/OSX/prepare_veewee_iso/support/pkg-postinstall
veewee-0.4.5 templates/OSX/prepare_veewee_iso/support/pkg-postinstall
veewee-0.4.5.pre1 templates/OSX/prepare_veewee_iso/support/pkg-postinstall
veewee-0.4.4 templates/OSX/prepare_veewee_iso/support/pkg-postinstall
veewee-0.4.3 templates/OSX/prepare_veewee_iso/support/pkg-postinstall
veewee-0.4.2 templates/OSX/prepare_veewee_iso/support/pkg-postinstall
veewee-0.4.1 templates/OSX/prepare_veewee_iso/support/pkg-postinstall
veewee-0.4.0 templates/OSX/prepare_veewee_iso/support/pkg-postinstall
veewee-0.3.12 templates/OSX/prepare_veewee_iso/support/pkg-postinstall
veewee-0.3.11 templates/OSX/prepare_veewee_iso/support/pkg-postinstall
veewee-0.3.10 templates/OSX/prepare_veewee_iso/support/pkg-postinstall
veewee-0.3.9 templates/OSX/prepare_veewee_iso/support/pkg-postinstall