Hi All!
In my quest to automate everything I decided to roll out a script that checks if the user is enrolled with out MDM and if they are not, go to our backup profile that is saved in the library and install it. I was testing it by running it, and it seems that it doesn't see our MDM Profile and still wants to install the new one. I think it has something to do with how I have it exit, but I cannot figure it out.
#!/bin/bash
if sudo profiles -P | egrep -q ': com.YOUR IDENTIFIER$'; then
exit 0
else
profiles -I -F /Library/Sandbox/MDM Profile.mobileconfig
fi
Thanks for any help,
Jared
