Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Bash script to deal with an Avid Application manager on OSX that can't connect or retreive your account info. This will totally reset your license
- # information on the client so you MUST re-activate after running this. Hey, not my fault... You could easily put this inside an Automator app if
- # that's your cup of tea.
- #
- # 1. Save the below to something like 'AVID_reset_activation.sh'
- # 2. in terminal: chmod +x /path/to/AVID_reset_activation.sh
- # 3. in terminal: /path/to/AVID_reset_activation.sh
- # 4. Look at the output and see if it looks as expected. After it's done, restart Avid Application Manager. On my machines I don't see the icon
- # in the menu bar after launching. So clink on first empty space near first already visible icon. Good one Avid...
- #
- # If you have no experience in stuffs like this you probably shouldn't use nor run this. I take no responsibility for any misstakes or
- # error at your end. I threw this together do deal with our 15ish clients that couldn't connect with the notoriously shitty
- # Avid Application Manager. So yeah, use with caution.
- #
- #
- #
- #all paths to delete
- paths=("/Library/Caches/Avid/AppManager/Cache" "/Library/Caches/Avid/AppManager/Db" "/Library/Application Support/Avid/Licenses" "/Library/Application Support/Avid/SWL")
- #all processes to kill
- processes=("AvidApplicationManager" "AvidAppManHelper")
- printf "\nTime to make this sucker work!\n\nPlease enter your password (you will not see any output while typing it, that's normal):\n"
- sudo cd .
- # Will kill affected processes
- for process in "${processes[@]}"; do
- printf "\n\nKilling '${process}'...\n"
- sudo killall -v "${process}"
- done
- #Wait a while so processed get a chance to terminate
- printf "\nWaiting for 10 seconds so we're sure all processes have terminated properly.\n"
- for i in {1..10}; do
- echo -ne " Sleeping: ${i}...\r"
- sleep 1
- done
- # Delete the paths needed to get this Trumpian POS up and running again.
- for path in "${paths[@]}"; do
- if [[ -d "${path}" ]]; then
- printf "\n\nDeleting '${path}'...\n"
- sudo rm -rfv "${path}"
- else
- printf "\n\n'${path}' wasn't found on this system.\n"
- fi
- done
- printf "\n\nAll done. Now start Avid Application Manager and sign in to your account.\nAfter launching it and if you don't see the icon in the menu bar, click right next to the first visible icon.\nAlso, you must re-activate Media Composer and/or any other Avid applications now.\n\n¯\_(ツ)_/¯\n\n"
Add Comment
Please, Sign In to add comment