Installing Universal Type Client 3.0 with Munki

Edit the file Universal\ Type\ Client\ 3.0.mpkg/Contents/Packages/universalTypeClient.pkg/Contents/Resources/postflight

Change it to look like this:

#!/bin/bash

#set the permissions on the application bundle
sudo chmod -R 775 "$2/Universal Type Client.app"

#set the ownership of the application bundle
sudo chown -R "root:admin" "$2/Universal Type Client.app"

#create UTC directory...
if [ ! -d "/Library/Extensis" ]; then
        sudo mkdir "/Library/Extensis"        
fi

sudo chmod -R 777  "/Library/Extensis"

#create UTC directory...
if [ ! -d "/Library/Extensis/UTC" ]; then
        sudo mkdir "/Library/Extensis/UTC"        
fi

sudo chmod -R 777  "/Library/Extensis/UTC"

#copy the corecli app to the /usr/bin directory and change the permissions on it to: 755
#Doing this instead of adding it to the PackageMaker project because editing the project can cause "bad" stuff like the "relocatable bundle" issue.
if [ -e "$2/Universal Type Client.app/Contents/Resources/corecli" ]; then
        if [ -e "/usr/bin/corecli" ]; then
                sudo ditto --rsrc "$2/Universal Type Client.app/Contents/Resources/corecli" "/usr/bin/corecli"
                sudo chmod 755 "/usr/bin/corecli"
        fi
fi

Same thing as before. Just removing all the code that makes assumptions that shouldn't be made.

2654 views and 0 responses