Posted on 12-12-2011 10:52 AM
Hi guys,
I'm trying to create a policy that prompts users with cached updates to restart.. on restarting they should see a full screen message like the below until all packages have been installed.
However, if I run the below as a before script.. the screen displays but the policy halts waiting for the screen to be dismissed..
So how do you guys do it?
#!/bin/sh
/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper -windowType fs -heading "Updates Installing" -description "Updates are currently being installed, please do not turn off this computer." -icon /System/Library/CoreServices/Software Update.app/Contents/Resources/Software Update.icns
Solved! Go to Solution.
Posted on 12-12-2011 11:01 AM
& this is where the old mailing list comes in handy:
From: Steve Wood To: Chris Pike Cc: "casper@list.jamfsoftware.com" casper@list.jamfsoftware.com Sent: Friday, 15 July 2011, 15:49 Subject: Re: [Casper] Installing Updates At Logout With Lock Screen You need to place an ampersand (&) at the end of that line or it will hang there waiting for jamfhelper to finish. If you look through the list archives you can see other discussions about using jamfHelper to lock the screen. Steve Sent from Somewhere On Jul 15, 2011, at 9:32 AM, Chris Pike wrote: Hi all, We are currently in the testing phase of binding our Macs to AD, at the moment all our Mac users have admin rights which means they can install their own updates (or not as the case may be!) and obviously when we go over to AD this will no longer be the case. So we would like to have our Macs point to one of our internal software update servers and if their are any updates to be installed have these install on shutdown. At the moment whenever a machine logs out of shut down and has updates to install there is just a blank screen with no information to the user. This isn't ideal and I was wondering about the use of lock screen to help us inform the user about what is happening. I am trying to write a script (not very successfully) that looks a bit like this: #!/bin/sh # Name: lockScreen.sh /Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper -windowType hud -lockHUD -description "Important updates are currently being installed. Please do not turn off your Mac." I have a policy set to run on logout for some test machines and it is set to 'Install All Software Updates' and the script above set to 'Run Before'. The script works as far as displaying the message to the user but then it will just hang there forever and looking in the console after restarting the Mac forcefully shows the install all updates portion of the policy never came into effect. I am new to Casper and scripting so I may have missed something obvious so any help would be appreciated! Cheers, Chris
Posted on 12-12-2011 11:01 AM
& this is where the old mailing list comes in handy:
From: Steve Wood To: Chris Pike Cc: "casper@list.jamfsoftware.com" casper@list.jamfsoftware.com Sent: Friday, 15 July 2011, 15:49 Subject: Re: [Casper] Installing Updates At Logout With Lock Screen You need to place an ampersand (&) at the end of that line or it will hang there waiting for jamfhelper to finish. If you look through the list archives you can see other discussions about using jamfHelper to lock the screen. Steve Sent from Somewhere On Jul 15, 2011, at 9:32 AM, Chris Pike wrote: Hi all, We are currently in the testing phase of binding our Macs to AD, at the moment all our Mac users have admin rights which means they can install their own updates (or not as the case may be!) and obviously when we go over to AD this will no longer be the case. So we would like to have our Macs point to one of our internal software update servers and if their are any updates to be installed have these install on shutdown. At the moment whenever a machine logs out of shut down and has updates to install there is just a blank screen with no information to the user. This isn't ideal and I was wondering about the use of lock screen to help us inform the user about what is happening. I am trying to write a script (not very successfully) that looks a bit like this: #!/bin/sh # Name: lockScreen.sh /Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper -windowType hud -lockHUD -description "Important updates are currently being installed. Please do not turn off your Mac." I have a policy set to run on logout for some test machines and it is set to 'Install All Software Updates' and the script above set to 'Run Before'. The script works as far as displaying the message to the user but then it will just hang there forever and looking in the console after restarting the Mac forcefully shows the install all updates portion of the policy never came into effect. I am new to Casper and scripting so I may have missed something obvious so any help would be appreciated! Cheers, Chris
Posted on 12-12-2011 11:04 AM
Hi Ben -
Just wanted to let you know we are planning on migrating all of the mailing list archives over to JAMF Nation. The mailing list will be shut down on December 30th which is when we will migrate all of the data as well.
Posted on 12-12-2011 11:11 PM
You may also want to have a look at iHook
http://rsug.itd.umich.edu/software/ihook/lexicon.html
which allows you to customize the lockscreen a bit more,
with a progress bar and fancy stuff like that
Posted on 12-29-2011 07:58 AM
We do that here, though without caching (we will be changing to "cache and release" soon though).
I have a separate notification policy. What we do is create a separate policy for each update. When we create a new policy, we add the same smart group for that policy to a policy that runs once per week on the install trigger, telling users to restart their machines as soon as convenient.