Skip to main content
Question

Scripting Adobe Updates


monosodium
Forum|alt.badge.img+10

Hello All,

I had a self-service action for updating Adobe use RUM (Remote Update Manager), but with 10.11 this simple script no longer works. I am now trying to create some logic to run a script from one location if on 10.11, otherwise run from the default location.

Any suggestions for how to do this? I tried using sw_vers -productVersion in combination with an if then else statement, but I think the syntax was off for the if then statement.

Thanks!

7 replies

Forum|alt.badge.img+11
  • Contributor
  • 82 replies
  • February 12, 2016

RUM's default installation location was /usr/sbin, which is protected by System Integrity Protection in 10.11.x. It's possible that RUM is no longer there. Download the updated version from Adobe: RUM download link. You might need to edit your self-service action to change the path reference.

Hope that helps!


Forum|alt.badge.img+10
  • New Contributor
  • 596 replies
  • February 12, 2016

post your script that doesn't work so we can see why it doesn't work and offer solutions to fix it


Forum|alt.badge.img+7
  • Valued Contributor
  • 64 replies
  • February 12, 2016

try this out. you might need to change the file paths to suit your situation

#!/bin/bash
FILE="/Applications/Utilities/Adobe Application Manager/CCP/utilities/RemoteUpdateManager/RemoteUpdateManager"
FILE2="/usr/local/bin/RemoteUpdateManager"

if [ -f "$FILE" ];
then
    "$FILE"
else 
    if [ -f "$FILE2" ];
    then
        "$FILE2"
    else
    echo "Adobe Remote Update Manager in not configured"
    fi
fi

monosodium
Forum|alt.badge.img+10
  • Author
  • Contributor
  • 42 replies
  • February 16, 2016

Yeah I accidentally deleted the old script or I would just post it. @rickwhois your script is pretty close to what I need. How would I run the command specifying a channel id?

EG:

RemoteUpdateManager --channelIds=AdobePremierePro-9.0.0-Trial

Can I just append that to the "$FILE" in the script?


Forum|alt.badge.img+7
  • Valued Contributor
  • 64 replies
  • February 16, 2016

@monosodium i dont know the actual commands to run for specific chanell but essentially, yes! something like this should work... (might need tweaking)

#!/bin/bash
FILE="/Applications/Utilities/Adobe Application Manager/CCP/utilities/RemoteUpdateManager/RemoteUpdateManager"
FILE2="/usr/local/bin/RemoteUpdateManager"

if [ -f "$FILE" ];
then
    "$FILE --channelIds=AdobePremierePro-9.0.0-Trial"
else 
    if [ -f "$FILE2" ];
    then
        "$FILE2 --channelIds=AdobePremierePro-9.0.0-Trial"
    else
    echo "Adobe Remote Update Manager is not configured"
    fi
fi

monosodium
Forum|alt.badge.img+10
  • Author
  • Contributor
  • 42 replies
  • February 17, 2016

@rickwhois Thanks for the help so far! I got the script working via the way that you suggested and have now tweaked it a bit to make it more end-user friendly, and I also wanted to be able to hand it the channelID but am getting syntax errors. I am apparently not a great coder...

Anyway, here is what I have so far if you see anything:

#!/bin/bash
FILE="/Applications/Utilities/Adobe Application Manager/CCP/utilities/RemoteUpdateManager/RemoteUpdateManager"
FILE2="/usr/local/bin/RemoteUpdateManager"

if [ -f "$FILE" ];
then
    "$FILE" --channelIds=$4
else 
    if [ -f "$FILE2" ];
    then
       "$FILE2" --channelIds=$4
else
    if [ $? -eq 2 ]
    then
        sudo jamf displayMessage -message "This individual updater was not successful. Please run the 'Update All Adobe CC Apps' self-service action to download any dependencies that might be needed."
else
    echo "Adobe Remote Update Manager is not configured. Please download Adobe Remote Update Manager from Self-Service to continue."
    sudo jamf displayMessage -message "Adobe Remote Update Manager is not configured. Please download Adobe Remote Update Manager from Self-Service to continue."
    exit 3
    fi
fi

Forum|alt.badge.img+24
  • Honored Contributor
  • 341 replies
  • February 17, 2016

You're missing a trailing fi

Corrected script:

#!/bin/bash
FILE="/Applications/Utilities/Adobe Application Manager/CCP/utilities/RemoteUpdateManager/RemoteUpdateManager"
FILE2="/usr/local/bin/RemoteUpdateManager"

if [ -f "$FILE" ];
then
    "$FILE" --channelIds=$4
else 
    if [ -f "$FILE2" ];
    then
       "$FILE2" --channelIds=$4
    else
        if [ $? -eq 2 ]
        then
            sudo jamf displayMessage -message "This individual updater was not successful. Please run the 'Update All Adobe CC Apps' self-service action to download any dependencies that might be needed."
        else
            echo "Adobe Remote Update Manager is not configured. Please download Adobe Remote Update Manager from Self-Service to continue."
            sudo jamf displayMessage -message "Adobe Remote Update Manager is not configured. Please download Adobe Remote Update Manager from Self-Service to continue."
            exit 3
        fi
    fi
fi

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings