Have Managed Software Update pop up only once a week?

761 views
Skip to first unread message

Jill Lenz

unread,
Mar 9, 2015, 4:18:10 PM3/9/15
to munk...@googlegroups.com
Is there a way to have Managed Software update check only once a week (specifically Wednesday)?
What would be the correct command for that?

Thanks

Gregory Neagle

unread,
Mar 9, 2015, 6:09:23 PM3/9/15
to munk...@googlegroups.com
On Mar 9, 2015, at 1:14 PM, Jill Lenz <jill....@gmail.com> wrote:

> Is there a way to have Managed Software update check only once a week (specifically Wednesday)?
> What would be the correct command for that?

There is no out-of-the-box support for this. Two basic approaches:

1) Disable this LaunchDaemon:
https://github.com/munki/munki/blob/master/launchd/LaunchDaemons/com.googlecode.munki.managedsoftwareupdate-check.plist and implement a replacement daemon that runs when you want it to,

2) Implement a preflight script (see https://github.com/munki/munki/wiki/Preflight%20And%20Postflight%20Scripts) that exits non-zero when invoked with runtype "auto" outside of your "OK to run" time window.

-Greg

Erik Gomez

unread,
Mar 9, 2015, 6:46:12 PM3/9/15
to munk...@googlegroups.com
You can also limit the user notifications.

This would allow you to still install unattended packages throughout the week and only notify your users of packages once a week. You couldn't specify what day though.

Sent from my iPhone
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.

Gregory Neagle

unread,
Mar 9, 2015, 6:47:40 PM3/9/15
to munk...@googlegroups.com
If you only make new packages available in your "production" catalog on Wednesdays, though...

-Greg

Jill Lenz

unread,
Mar 10, 2015, 11:35:10 AM3/10/15
to munk...@googlegroups.com
Thanks all.

Jill Lenz

unread,
Mar 11, 2015, 10:47:07 AM3/11/15
to munk...@googlegroups.com
How do I limit the user notifications?
I'm still a little inexperienced with this so I'm sorry. 

I will install new packages in Munki admin on Wednesdays


On Monday, March 9, 2015 at 3:18:10 PM UTC-5, Jill Lenz wrote:

Adam M. Anklewicz

unread,
Mar 11, 2015, 10:53:03 AM3/11/15
to munk...@googlegroups.com
Hey Jill,
By default SuppressUserNotification is set to false. You can set this in the .plist file on the client machine to true. 


SuppressUserNotification

This key (when present and value is set to True) causes munki to never notify users of available updates. This might be useful in a lab environment, where you'd like updates to be applied only when no-one is logged in and the machine is at the login window.

I’m not sure how you’re managing your client configuration I use a profile, so I can blast out a new profile via Munki to update this for the endusers.

Jill Lenz

unread,
Mar 11, 2015, 10:58:04 AM3/11/15
to munk...@googlegroups.com
I still want it to notify users but only when there's updates available. 
I'm allowing the clients to update on their own time but if it doesn't notify them, they won't do it.  And I don't want the Managed Software App to show up when there's no available updates - that will get annoying.  
I'm not experienced with changing stuff in .plist but I'll work on it. 

Jill Lenz

unread,
Mar 11, 2015, 11:00:36 AM3/11/15
to munk...@googlegroups.com
I tried doing this command to get it to notify only when there's updates. I read somewhere that 0 will only notify the user when there's available updates but I don't think it's working.    sudo defaults write /Library/Preferences/ManagedInstalls DaysBetweenNotifications -int 0

Adam M. Anklewicz

unread,
Mar 11, 2015, 11:09:17 AM3/11/15
to munk...@googlegroups.com
By default MSC only shows up when there are updates. It should be good for what you want.

My DaysBetweenNotification is set to 1, which is the default, and I never see MSC unless there’s an update pending (that it can’t auto install, usually Chrome, as it’s always running).

Adam

Jill Lenz

unread,
Mar 11, 2015, 11:21:58 AM3/11/15
to munk...@googlegroups.com
Ok. Got it. 
Thanks 


You received this message because you are subscribed to a topic in the Google Groups "munki-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/munki-dev/WB6SNLhka3k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to munki-dev+...@googlegroups.com.

Gregory Neagle

unread,
Mar 11, 2015, 11:37:56 AM3/11/15
to munk...@googlegroups.com
On Mar 11, 2015, at 7:58 AM, Jill Lenz <jill....@gmail.com> wrote:

I still want it to notify users but only when there's updates available. 

That's what it does.  Managed Software Center doesn't notify users that there are no updates...

I'm allowing the clients to update on their own time but if it doesn't notify them, they won't do it.  And I don't want the Managed Software App to show up when there's no available updates - that will get annoying.  

And thankfully, it does not do that.
Reply all
Reply to author
Forward
0 new messages