mpanighetti / install-or-defer

A framework for prompting users of Jamf Pro-managed Macs to install Apple software updates.
Apache License 2.0
147 stars 28 forks source link

not getting pop-up every 4 hour #71

Closed pmac789 closed 2 years ago

pmac789 commented 2 years ago

Hey Mario, I try your script today, I only got 1 pop which is the beginning when I push out the policy from jamf. am I doing something wrong? it supposed to do a pop-up every 4 hours if user press defer?

mpanighetti commented 2 years ago

Yep, the LaunchDaemon reloads regularly in the background and displays the prompt about 4 hours after the last alert, unless you've customized the script or LaunchDaemon payloads and changed the timing. Can you give the latest release a try without any modifications and see if you run into the same issue?

pmac789 commented 2 years ago

The .pkg that are on the site? What did you used to wrap it up?

On Mon, Jan 31, 2022 at 6:01 PM Mario Panighetti @.***> wrote:

Yep, the LaunchDaemon reloads regularly in the background and displays the prompt about 4 hours after the last alert, unless you've customized the script or LaunchDaemon payloads and changed the timing. Can you give the latest release a try without any modifications and see if you run into the same issue?

— Reply to this email directly, view it on GitHub https://github.com/mpanighetti/install-or-defer/issues/71#issuecomment-1026406202, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWSIZAM5OMAPPJSLIN7VHI3UY45HZANCNFSM5NBA62LQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

mpanighetti commented 2 years ago

Yeah, the .pkg file included in the release is an unmodified default payload you can install directly on your systems. If you're making any changes to the payload (e.g. customizing alert text and branding image), you'll need to assemble the new package. README includes guidance on using munkipkg to do this, but other tools should work fine if preferred.

pmac789 commented 2 years ago

Thank Mario. I will give this a go again tomorrow as I would like to have custom logo. If I need to repackage the installer again I would need to Included the launchdaimon payload and the post install and pre install script?

On Mon, Jan 31, 2022 at 7:26 PM Mario Panighetti @.***> wrote:

Yeah, the .pkg file included in the release is an unmodified default payload you can install directly on your systems. If you're making any changes to the payload (e.g. customizing alert text and branding image), you'll need to assemble the new package. README includes guidance on using munkipkg to do this https://github.com/mpanighetti/install-or-defer#installer-creation, but other tools should work fine if preferred.

— Reply to this email directly, view it on GitHub https://github.com/mpanighetti/install-or-defer/issues/71#issuecomment-1026444105, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWSIZANITVKFK3IJNFASIVDUY5HFVANCNFSM5NBA62LQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

mpanighetti commented 2 years ago

You'll need all of it to ensure a clean installation (preinstall removes existing resources if you've run it before) and to automate reloading the script each time it prompts the user (postinstall loads the LaunchDaemon the first time, LaunchDaemon handles the recurring checks). This script used to run directly in a Jamf Pro policy but was changed to a LaunchDaemon payload to allow running without hanging up a policy and the jamf process for extended periods.

pmac789 commented 2 years ago

That exactly what I did the other day using munkipkg and wrapping it up with .plist for the launchdaimon with post and Pre.

I also trying wrapping it up with composer but I never get the initials pop-up.

Be great if you would post a quick YouTube tutorial.

On Mon, Jan 31, 2022 at 7:33 PM Mario Panighetti @.***> wrote:

You'll need all of it to ensure a clean installation (preinstall removes existing resources if you've run it before) and to automate reloading the script each time it prompts the user (post install loads the LaunchDaemon the first time, LaunchDaemon handles the recurring checks).

— Reply to this email directly, view it on GitHub https://github.com/mpanighetti/install-or-defer/issues/71#issuecomment-1026446554, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWSIZALMOVAWFIACVNZSDYDUY5H67ANCNFSM5NBA62LQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

mpanighetti commented 2 years ago

For what it's worth, the latest release moved custom messaging logos from the script to a configuration profile key, meaning you can make that customization without making any changes to the script or repackaging. Give it a try and see if the alert starts showing up on the unmodified payload.

mpanighetti commented 2 years ago

Going to close this out since it seems like you just need to load the LaunchDaemon as part of your deployment.