Skip to content

Instantly share code, notes, and snippets.

@loceee
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loceee/21643ea6db2c0eb9c1db to your computer and use it in GitHub Desktop.
Save loceee/21643ea6db2c0eb9c1db to your computer and use it in GitHub Desktop.
Profile post install script for delivering profiles in a pkgs
#!/bin/bash
#
# postinstall-profileInstaller.sh
#
# because, derp - https://jamfnation.jamfsoftware.com/discussion.html?id=13997
IFS=$'\n'
for mobileconfig in /tmp/profiles/*
do
profiles -I -F "${mobileconfig}"
done
rm -R /tmp/profiles/
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment