-
-
Save rmanly/c2ba45dcbfbbfe840a73 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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. :)