Skip to content

Instantly share code, notes, and snippets.

@erikng
Created October 15, 2013 14:49
Show Gist options
  • Save erikng/6992768 to your computer and use it in GitHub Desktop.
Save erikng/6992768 to your computer and use it in GitHub Desktop.
The Imagination Station - requires terrible permissions that munki attempts to fix. post_install to add domain.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
<key>description</key>
<string>The Imagination Station</string>
<key>display_name</key>
<string>The Imagination Station</string>
<key>installer_type</key>
<string>copy_from_dmg</string>
<key>installs</key>
<array>
<dict>
<key>CFBundleIdentifier</key>
<string>com.istation.isapp</string>
<key>CFBundleVersion</key>
<string>2.1</string>
<key>minosversion</key>
<string>10.3.9</string>
<key>path</key>
<string>/Applications/The Imagination Station.app</string>
<key>type</key>
<string>application</string>
<key>version_comparison_key</key>
<string>CFBundleVersion</string>
</dict>
</array>
<key>items_to_copy</key>
<array>
<dict>
<key>destination_path</key>
<string>/Applications</string>
<key>source_item</key>
<string>The Imagination Station.app</string>
</dict>
</array>
<key>postinstall_script</key>
<string>#!/bin/sh
rm /Applications/The\ Imagination\ Station.app/Contents/MacOS/IS.ini
touch /Applications/The\ Imagination\ Station.app/Contents/MacOS/IS.ini
echo "[ AppConfig ]" >> /Applications/The\ Imagination\ Station.app/Contents/MacOS/IS.ini
echo " LastNSHost = prod.istation.com" >> /Applications/The\ Imagination\ Station.app/Contents/MacOS/IS.ini
echo " LastNSPort = 12500" >> /Applications/The\ Imagination\ Station.app/Contents/MacOS/IS.ini
echo " RenderEngine = Default" >> /Applications/The\ Imagination\ Station.app/Contents/MacOS/IS.ini
echo " serverTimeSkew = 0" >> /Applications/The\ Imagination\ Station.app/Contents/MacOS/IS.ini
echo " " >> /Applications/The\ Imagination\ Station.app/Contents/MacOS/IS.ini
echo "[ UserConfig ]" >> /Applications/The\ Imagination\ Station.app/Contents/MacOS/IS.ini
echo " DefaultDomain = DOMAINNAMEHERE" >> /Applications/The\ Imagination\ Station.app/Contents/MacOS/IS.ini
chown -R root:wheel /Applications/The\ Imagination\ Station.app
chmod -R 777 /Applications/The\ Imagination\ Station.app
exit 0
</string>
<key>minimum_os_version</key>
<string>10.4.0</string>
<key>name</key>
<string>The Imagination Station</string>
<key>uninstall_method</key>
<string>remove_copied_items</string>
<key>uninstallable</key>
<true/>
<key>version</key>
<string>2.1</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment