Installation order for installing dockutil script

396 views
Skip to first unread message

Kostas Backas-Gmail

unread,
Jan 3, 2016, 5:24:00 PM1/3/16
to munk...@googlegroups.com
Hello all and a Happy New Year!

In a new installation I need to run a dockutil script via outset but only after the other software installation finishes. Does munki installs things in alphabetical order, so I can set the last package as requirement for the script package?

Best regards

Kostas

Graham Gilbert

unread,
Jan 3, 2016, 5:25:14 PM1/3/16
to munk...@googlegroups.com
Or an update_for

Sent from my iPhone




--
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.

Kostas Backas-Gmail

unread,
Jan 3, 2016, 6:10:37 PM1/3/16
to munk...@googlegroups.com
Thanks, but how I determine the _last_ package?

Gregory Neagle

unread,
Jan 3, 2016, 6:12:41 PM1/3/16
to munk...@googlegroups.com
Outset runs scripts at startup or at user login. Why does it matter when Munki _installs_ these scripts?

Sent from my iPhone
--

Kostas Backas-Gmail

unread,
Jan 3, 2016, 6:16:31 PM1/3/16
to munk...@googlegroups.com
Because there are new machines and the software must exist for dockutil to place it into dock. Munki will install the software and last the dockutil once script comes.

Gregory Neagle

unread,
Jan 3, 2016, 6:17:35 PM1/3/16
to munk...@googlegroups.com
But the script will not run until the next restart or login; presumably after Munki has installed everything…

Kostas Backas-Gmail

unread,
Jan 3, 2016, 6:21:47 PM1/3/16
to munk...@googlegroups.com
That was my first approach, but I have to be sure that the last package was installed... It guess it will work this way too, since I will not login as a std user until the installations are done.

Best regards

Kostas

Nick McSpadden

unread,
Jan 3, 2016, 7:14:47 PM1/3/16
to munk...@googlegroups.com
Why does it need to run _last_? Regardless of the other questions about how necessary you think this is, Munki already has the ability to establish "A before B" relationships, using update_for or requires keys.

If you need to make sure your dockutil script is installed after your software (and, as Greg said, you really don't, since this happens at login anyway), then mark those software packages are requirements for your dockutil script.
--
Nick McSpadden
nmcsp...@gmail.com

Kostas Backas-Gmail

unread,
Jan 3, 2016, 7:23:41 PM1/3/16
to munk...@googlegroups.com
Thank you,

Mark all installations that will be placed on the new dock as required? OK, but since there are many items, that's the reason I wanted to know which is the last software installed in a manifest.

Since I don't have yet anything that requires restart, I will do a test with first login.

Now I need to find a way to exclude the local admin user from getting the outset script.

Best regards

Kostas

Erik Gomez

unread,
Jan 3, 2016, 7:28:35 PM1/3/16
to munk...@googlegroups.com
There are various ways to accomplish this (excluding the admin account), all which should already be in the repertoire of system administrator with years of experience. 

Sent from my iPad

Kostas Backas-Gmail

unread,
Jan 3, 2016, 7:42:26 PM1/3/16
to munk...@googlegroups.com
years of experience
That's the key here. Lack of it.

Lee Ramsay

unread,
Jan 6, 2016, 4:56:28 AM1/6/16
to munk...@googlegroups.com
Could you not mark the dockutil modification script(s) as logout required? This would force a logout, then the dockutil scripts would be put somewhere outset would run them, then guaranteed, both the software and the dockutil script will be present, before the user logs in?

I'm not sure if I've misread the situation..

Lee

Kostas Backas-Gmail

unread,
Jan 6, 2016, 9:57:52 AM1/6/16
to munk...@googlegroups.com
Thank you,

Good idea, I will, although in my situation, the user home will be created after the initial munki run.

Best regards

Kostas

Mr. Alan Siu

unread,
Jan 6, 2016, 11:22:58 AM1/6/16
to munk...@googlegroups.com
If the user home isn't created until after Munki is run, then I'm not sure the order will matter. My understanding is that Outset essentially modifies a Launch Agent. If you want the Launch Agent to use dockutil, at that point, both dockutil and the applications will all already be installed.


Alan Siu
Client Systems Analyst
St. Ignatius College Preparatory

Erik Gomez

unread,
Jan 6, 2016, 11:39:02 AM1/6/16
to munk...@googlegroups.com
Outset utilizes a Launch Agent upon user login and will run any scripts (once or every time depending on admin configuration). 

If you have a dockutil script that is ran via Outset, it will run.
Reply all
Reply to author
Forward
0 new messages