Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Option for .profileSetupRetryFailedProfiles #2

Open
hansen-m opened this issue Apr 11, 2014 · 1 comment
Open

Add Option for .profileSetupRetryFailedProfiles #2

hansen-m opened this issue Apr 11, 2014 · 1 comment

Comments

@hansen-m
Copy link

It might be useful to add an option for the postinstall script to touch /var/db/ConfigurationProfiles/Setup/.profileSetupRetryFailedProfiles

System Image Utility does this when you add a configuration profile:

targetVol="${1}"
profilesDir="${targetVol}/var/db/ConfigurationProfiles"

...

/bin/rm "${profilesDir}/Setup/.profileSetupDone" > /dev/null 2>&1
/usr/bin/touch "${profilesDir}/Setup/.profileSetupRetryFailedProfiles"
@timsutton
Copy link
Owner

Seems reasonable, although it would be nice to know exactly what this is does.

If I set the debug options as shown in that SIU script and re-run what looks like the startup mode for ManagedClient:

sudo /usr/libexec/PlistBuddy -c "Add :debugOutput string -2" "/Library/Preferences/com.apple.MCXDebug.plist"
sudo /usr/libexec/PlistBuddy -c "Add :collateLogs string 1" "/Library/Preferences/com.apple.MCXDebug.plist"
sudo /System/Library/CoreServices/ManagedClient.app/Contents/MacOS/ManagedClient -i

And tail the log file:

tail -f /Library/Logs/ManagedClient/ManagedClient.log

retryFailedProfiles doesn't seem to have much effect on Configuration Profiles that I butcher with invalid XML (they "install" anyway). Maybe it's only used for enrolment profiles, or just not yet implemented? Maybe somebody who actually uses enrolment profiles could test this..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants