Skip to content

Commit 51c5850

Browse files
Merge pull request #4 from AndrewMBarnett/V.1.3
Update HealthCheckUpdateProgress.zsh
2 parents c4e5782 + 29b9202 commit 51c5850

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

HealthCheckUpdateProgress.zsh

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
# - Added `--no-rcs` to shebang of script. This addresses CVE-2024-27301. https://nvd.nist.gov/vuln/detail/CVE-2024-27301/change-record?changeRecordedOn=03/14/2024T15:15:50.680-0400
2424
# - Added Jamf script parameter to show either stock progress text or read the log file in dialog window progress text
2525
#
26+
# Version 1.3.0 - 06/27/2024
27+
# - Added operation modes 'Silent Self Service' and 'Silent Self Service Force' to enable a full Health Check with no dialog window
28+
#
2629
####################################################################################################
2730

2831

@@ -70,7 +73,7 @@ secondsToWait="${4:-"86400"}"
7073
# Parameter 5: Estimated Total Seconds
7174
estimatedTotalSeconds="${5:-"120"}"
7275

73-
# Parameter 6: Operation Mode [ Inventory | Inventory Force | Policy | Policy Force | Protect | Protect Force | Self Service | Silent Inventory | Uninstall ]
76+
# Parameter 6: Operation Mode [ Inventory | Inventory Force | Policy | Policy Force | Protect | Protect Force | Self Service | Silent Self Service | Silent Self Service Force | Silent | Uninstall ]
7477
operationMode="${6:-""}"
7578

7679
# Parameter 7: Enables the webhook feature [ true | false ]
@@ -1180,6 +1183,15 @@ if [[ ${ageInSeconds} -le ${secondsToWait} ]]; then
11801183
quitScript "0"
11811184
;;
11821185

1186+
"Silent Self Service Force" ) # Full Health Check, sans swiftDialog
1187+
infoOut "Full Health Check, sans swiftDialog …"
1188+
/usr/local/bin/jamf recon -endUsername "${loggedInUser}"
1189+
/usr/local/bin/jamf policy -endUsername "${loggedInUser}"
1190+
/Applications/JamfProtect.app/Contents/MacOS/JamfProtect checkin
1191+
/usr/local/bin/jamf recon -endUsername "${loggedInUser}"
1192+
quitScript "0"
1193+
;;
1194+
11831195
"Silent" ) # Don't leverage swiftDialog
11841196
notice "Inventory will NOT be updated …"
11851197
quitScript "0"
@@ -1261,6 +1273,15 @@ elif [[ ${ageInSeconds} -ge ${secondsToWait} ]]; then
12611273
quitScript "0"
12621274
;;
12631275

1276+
"Silent Self Service" ) # Full Health Check, sans swiftDialog
1277+
infoOut "Full Health Check, sans swiftDialog …"
1278+
/usr/local/bin/jamf recon -endUsername "${loggedInUser}"
1279+
/usr/local/bin/jamf policy -endUsername "${loggedInUser}"
1280+
/Applications/JamfProtect.app/Contents/MacOS/JamfProtect checkin
1281+
/usr/local/bin/jamf recon -endUsername "${loggedInUser}"
1282+
quitScript "0"
1283+
;;
1284+
12641285
"Silent Inventory" ) # Update inventory, sans swiftDialog
12651286
infoOut "Inventory WILL BE updated, sans swiftDialog …"
12661287
/usr/local/bin/jamf recon -endUsername "${loggedInUser}"

0 commit comments

Comments
 (0)