Skip to content

Instantly share code, notes, and snippets.

@rmanly
Forked from rickychilcott/pro_tools_11_munki.sh
Last active August 17, 2016 19:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rmanly/c2ba45dcbfbbfe840a73 to your computer and use it in GitHub Desktop.
Save rmanly/c2ba45dcbfbbfe840a73 to your computer and use it in GitHub Desktop.
#!/bin/bash
# looks like they changed they name again
# https://groups.google.com/forum/#!topic/munki-dev/w38roCmEgH0
# I have 11.2.1.203 and it is now just 'shoe'
# Copy the com.avid.bsd.shoe Helper Tool
PHT_SHOE="/Library/PrivilegedHelperTools/com.avid.bsd.shoe"
/bin/cp "/Applications/Pro Tools.app/Contents/Library/LaunchServices/com.avid.bsd.shoe" $PHT_SHOE
/usr/sbin/chown root:wheel $PHT_SHOE
/bin/chmod 544 $PHT_SHOE
# Create the Launch Deamon Plist for com.avid.bsd.shoe
PLIST="/Library/LaunchDaemons/com.avid.bsd.shoe.plist"
FULL_PATH="/Library/PrivilegedHelperTools/com.avid.bsd.shoe"
rm $PLIST # Make sure we are idempotent
/usr/libexec/PlistBuddy -c "Add Label string" $PLIST
/usr/libexec/PlistBuddy -c "Set Label com.avid.bsd.shoe" $PLIST
/usr/libexec/PlistBuddy -c "Add MachServices dict" $PLIST
/usr/libexec/PlistBuddy -c "Add MachServices:com.avid.bsd.shoe bool" $PLIST
/usr/libexec/PlistBuddy -c "Set MachServices:com.avid.bsd.shoe true" $PLIST
/usr/libexec/PlistBuddy -c "Add ProgramArguments array" $PLIST
/usr/libexec/PlistBuddy -c "Add ProgramArguments:0 string" $PLIST
/usr/libexec/PlistBuddy -c "Set ProgramArguments:0 $FULL_PATH" $PLIST
/bin/launchctl load $PLIST
mkdir -p "/Library/Application Support/Avid/Audio/Plug-Ins"
mkdir -p "/Library/Application Support/Avid/Audio/Plug-Ins (Disabled)"
chmod a+w "/Library/Application Support/Avid/Audio/Plug-Ins"
chmod a+w "/Library/Application Support/Avid/Audio/Plug-Ins (Disabled)"
mkdir "/Users/Shared/Pro Tools"
mkdir /Users/Shared/AvidVideoEngine
chown -R root:wheel /Users/Shared/*
chmod -R a+rw /Users/Shared/*
@rmanly
Copy link
Author

rmanly commented Oct 17, 2014

I didn't realize this was just a gist when I forked it.

See the munki-dev thread in comments for more context.

Also, these great articles.

http://www.pro-tools-expert.com/home-page/2014/2/2/preparing-pro-tools-forautomatic-installation-in-a-mac-enter.html

Part 4 has all the links. :)

@rmanly
Copy link
Author

rmanly commented Jun 11, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment