Managed Software Client Customization Banners Not Working Dynamically

1,186 views
Skip to first unread message

Keith Mitnick

unread,
Sep 5, 2015, 10:49:54 AM9/5/15
to munki-dev
I've been struggling to get this to work and was hoping for assistance from the group.

I'm using the following running on os x yostemite 10.10.4 server:

Latest munki tools 2.3.0.2519 on the client and server

I have a "client_resources" folder at the root of my munki repo.

I have a "site_default.zip" file in the root of the "client_resources" folder.  I made the zip following the how to on the git hub client customization page for munki.

On the client computer, using the Terminal, i ran:  sudo managedsoftwareupdate -vvv

I watched as it downloaded the updated the updated files.

On the client computer, I had a look at /Library/ManagedInstalls and in the "client_resources" folder, I see a "custom.zip" file.  

I opened the "custom.zip" file and all my custom banners are there.  All properly named:  branding.png, branding1.png, branding2.png.

When I launch Managed Software Center on the Client computer, the default banners are showing and not the custom banners.

On the Client Computer, I had a look at:  ~/Library/Caches/com.googlecode.munki.ManagedSoftwareCenter/html/custom/resources   and all the custom banners are there with the proper names as well as the templates folder with the footer_template.html, showcase_template.html, sidebar_template.html files.

Just to see if there was something wrong with my banner files, On the client computer, on the Managed Software Center application, I showed the package contents and navigated to Contents>Resources>WebResources and I replaced the branding.png, branding1.png, branding2.png. files with my custom files.

When I launch Managed Software Center on the Client computer, my custom banners were there.

Not sure why it's not updating dynamically.

Any help is greatly appreciated.

Thanks

Keith

Bart Reardon

unread,
Sep 8, 2015, 9:28:36 AM9/8/15
to munki-dev
what does your showcase_template.html look like?

You should have this at the bottom 

<div class="showcase">
    <div class="stage" onClick='stageClicked();'>
        <img href="http://ww.apple.com/" alt="Apple" src="custom/resources/custom_branding.png" />
        <img href="detail-GoogleChrome.html"  alt="Google Chrome" src="custom/resources/some_other_branding.png" />
        <img href="developer-Google.html" alt="Google Applications" src="custom/resources/Google.png" />
    </div>
</div>

you need to replace the links and banner images to the links and filenames of your images. Munki isn't going to display anything if you don't tell it to.

check out the wiki on client customisations https://github.com/munki/munki/wiki/Client-Customization 

Keith Mitnick

unread,
Sep 8, 2015, 5:43:10 PM9/8/15
to munki-dev
Bart,

Thanks for putting me on the right track.  I added the following to my showcase_template and it worked.

<div class="showcase">
    <div class="stage" onClick='stageClicked();'>
        <img href="#" alt="Branding" src="custom/resources/branding.png" />
        <img href="#" alt="Branding" src="custom/resources/branding1.png" />
        <img href="#" alt="Branding" src="custom/resources/branding2.png" />
    </div>
</div>

Thanks again.

Keith
Reply all
Reply to author
Forward
0 new messages