Thunderbird Add-on Restriction Push

Thala07
New Contributor

Hi Team,

 

We are adding some restrictions in thunderbird add-ons for that we using below mentioned scripts. When we are in sonoma we haven't faced any issues. After upgraded to sequoia we started facing the issue. Need your support to fix this. When we running this script we are getting this error.

Fyi: Thunderbird is working fine, if we haven't scoped the policy.

Screenshot 2025-02-26 at 3.55.44 PM.png

#!/bin/bash
# Identify Company account and save it
loggedInUser=$(stat -f %Su /dev/console)

echo "Adding Thunderbird JSON..."

# Check to see if folder already present
DIR="/Applications/Thunderbird.app/Contents/Resources/distribution"
if [ -d "$DIR" ]; then
echo "File already exists. Exiting..."
sudo hdiutil detach '/Volumes/distribution'
exit 0 #success? file already existed
else
### Control will jump here if $DIR does NOT exists ###
echo "Moving file"
# mount dmg PATH TO CHANGE
hdiutil attach '/Library/Application Support/JAMF/Waiting Room/thunderbird_addon_policy.dmg'
sudo cp -R '/Volumes/distribution/Users/Shared/distribution' "$DIR"
if [ -d "$DIR" ]; then
sudo hdiutil detach '/Volumes/distribution'
exit 0 #success
else
echo "Something broke. Exiting..."
exit 1 #not so much success..
fi
sudo hdiutil detach '/Volumes/distribution'
exit
fi

0 REPLIES 0