Skip to main content
Jamf Nation, hosted by Jamf, is a knowledgeable community of Apple-focused admins and Jamf users. Join us in person at the ninth annual Jamf Nation User Conference (JNUC) this November for three days of learning, laughter and IT love.

Skype autoinstall newest version for appinstall and patchmanagement.

So the version we found on jamfnation (https://www.jamf.com/jamf-nation/third-party-products/files/1020/install-latest-skype-for-mac) did not work because it was detecting the OS through the url and curl does not supply any operatingsystem information prompting a windows installer to a mac client resulting in failure. It seems to work correctly.

#!/bin/bash

mkdir /tmp/downloads
cd /tmp/downloads

curl -L -o skype.dmg https://go.skype.com/getskype-skypeformac

hdiutil mount -nobrowse skype.dmg -mountpoint /Volumes/skype
rsync -vaz /Volumes/skype/Skype.app/ /Applications/Skype.app
hdiutil unmount "/Volumes/skype"
rm skype.dmg
rm -rf /tmp/downloads
Like Comment