> On Oct 17, 2015, at 8:01 AM, MiqViq <
miq...@gmail.com> wrote:
>
> Hi,
>
> in another thread there was an suggestion to use a munki postflight to check if there are any pensing updates and if so then crete trigger file for munki to start installing updates after logout.
>
> Greg N wrote:
>>
>> Or, you _could_, if you wished, in a Munki postflight script, check to see if there are any pending updates (`defaults read /Library/Preferences/ManagedInstalls PendingUpdateCount`). If there are any, the script could then touch /private/tmp/com.googlecode.munki.installatlogout, which would cause Munki to attempt to install any pending updates at the next logout. There would be no delay — the behavior would be exactly the same as if the user had been notified by MSC and then clicked “Update” and agreed to a required logout. I have not actually tried/tested this, but I believe it would work.
>
> I was thinking if this feature could be built into munki itself, as optional behaviour?
> Manageable with a key in plist?
>
> On initial thought this should not require huge changes with the code?
I dislike this. A user logs out, perhaps expecting to log back in immediately, or to shut down, and unexpectedly the Munki Status window appears and now the user has no idea when they’ll be let back in.
If you want to implement this for yourself, go ahead. It would be a simple postflight script. If there are multiple Munki admins who want to do this, you can all collaborate and make the “best” script.
>
> #
>
> Optionally there could be a prompt from munki to GUI user something like "There are pending updates for this computer.
You are describing Managed Software Center. It launches and tells the user there are pending updates. They can even choose to install them.
> Please do not shut down the computer after you logout."
> And this prompt should be customisable too.
>
>
> - MiqViq
>
>
>
>
> --
> Find related discussion groups here:
>
https://github.com/munki/munki/wiki/Discussion-Group
> ---
> You received this message because you are subscribed to the Google Groups "munki-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
munki-dev+...@googlegroups.com.
> To post to this group, send email to
munk...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.