Last active
August 29, 2015 14:18
-
-
Save loceee/21643ea6db2c0eb9c1db to your computer and use it in GitHub Desktop.
Profile post install script for delivering profiles in a pkgs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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