Posted on 10-02-2023 06:16 AM
Hello,
I use the Erase-Install to update/upgrade our Macbooks. But i have a problem.
Task is works, macbooks download and install the package then reboot the device. But after reboot erase-install task start again then it dowload the same package again. And when i check the logs from jamf pro, it is "Pending" stiuation. Can you tell me what is wrong?
Thank you.
Solved! Go to Solution.
Posted on 10-03-2023 04:59 AM
@foreverkan When you directly run the erase-install script the Mac it's running on will restart before the script completes which means the policy running it will never log that it has completed so it will still show as Pending. Using the erase-install-launcher script to run erase-install works around that problem, and the policy running it will report as completed.
Posted on 10-02-2023 07:20 AM
@foreverkan Are you running erase-install directly from your policy, or are you using https://github.com/grahampugh/erase-install/blob/main/erase-install-launcher.sh to call it? If you're not doing the latter then the Mac will restart to complete the update/upgrade which means your policy will never "finish" so it remains Pending. Using the erase-install-launcher script instead of calling erase-install directly will allow the policy to complete.
Posted on 10-02-2023 10:30 PM
Thank you for your reply. I use policy, pkg and command. i applied this policy. I couldnt understand "Using the erase-install-launcher script instead of calling erase-install directly will allow the policy to complete." can you tell me how can i do that?
Posted on 10-03-2023 04:59 AM
@foreverkan When you directly run the erase-install script the Mac it's running on will restart before the script completes which means the policy running it will never log that it has completed so it will still show as Pending. Using the erase-install-launcher script to run erase-install works around that problem, and the policy running it will report as completed.