I might be overlooking an easy fix, but here goes... I am testing the process to update 10.8 machines to 10.9 using Self service... the caching of the package and installation work with no problems. Upon reboot and logon, the machine's inventory has not yet been updated, and as a result it still displays 10.8.x as the OS version. I have multiple policies that are triggered based on 10.9 OS, which impact the users initial experience. The question is, how can i best ensure that after these machines are updated to 10.9, the inventory updates when the user logs on for the first time after the upgrade (or soon after)? Thanks.
Solved
Inventory 10.9 Machines on First Logon
Best answer by c0n0r
Try this:
#!/bin/bash
/usr/sbin/jamf log
if [ $? == "0" ]; then
/usr/sbin/jamf recon
/bin/rm -f /Library/LaunchDaemons/com.company.firstrecon.plist
/bin/rm -f "$0"
else
exit 0
fi
I still think that net-catting your JSS is a better option than running the log command... but that's just me.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
