Closed pmac789 closed 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?
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: @.***>
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.
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: @.***>
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.
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: @.***>
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.
Going to close this out since it seems like you just need to load the LaunchDaemon as part of your deployment.
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?