Merge pull request 'fedora-intune: take the first Defender health snapshot right after boot' (#7) from misthios/defender-snapshot-at-boot into main
Build containers / Compute changes (push) Successful in 20s
Build containers / fedora-cosmic (44) (push) Skipped
Build containers / fedora-cosmic (rawhide) (push) Skipped
Build containers / fedora-remote (44) (push) Skipped
Build containers / fedora-intune (44) (push) Successful in 12m28s
Build containers / Prune old releases and tags (push) Successful in 27s
Build containers / Compute changes (push) Successful in 20s
Build containers / fedora-cosmic (44) (push) Skipped
Build containers / fedora-cosmic (rawhide) (push) Skipped
Build containers / fedora-remote (44) (push) Skipped
Build containers / fedora-intune (44) (push) Successful in 12m28s
Build containers / Prune old releases and tags (push) Successful in 27s
Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
commit
082ae219b1
2 files changed
+10
-1
No files matched your search
@@ -24,6 +24,13 @@ FIELDS=(
|
|||||||
app_version
|
app_version
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Right after boot the daemon may not answer yet; give it up to 2 minutes so
|
||||||
|
# the first snapshot isn't a false "not running".
|
||||||
|
for _ in $(seq 1 24); do
|
||||||
|
[[ "$("${MDATP}" health --field healthy 2>/dev/null | tail -n1)" =~ ^(true|false)$ ]] && break
|
||||||
|
sleep 5
|
||||||
|
done
|
||||||
|
|
||||||
tmp="$(mktemp -d "${DEST}.XXXXXX")"
|
tmp="$(mktemp -d "${DEST}.XXXXXX")"
|
||||||
trap 'rm -rf "${tmp}"' EXIT
|
trap 'rm -rf "${tmp}"' EXIT
|
||||||
for field in "${FIELDS[@]}"; do
|
for field in "${FIELDS[@]}"; do
|
||||||
|
|||||||
@@ -2,7 +2,9 @@
|
|||||||
Description=Save Microsoft Defender health every 5 minutes
|
Description=Save Microsoft Defender health every 5 minutes
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
OnBootSec=2min
|
# Early, so the compliance check at the first sign-in after boot finds a
|
||||||
|
# snapshot; Himmelblau doesn't check again for 8 hours.
|
||||||
|
OnBootSec=20s
|
||||||
OnUnitActiveSec=5min
|
OnUnitActiveSec=5min
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|||||||
Reference in new issue
Block a user