|
23 | 23 | # - 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 |
24 | 24 | # - Added Jamf script parameter to show either stock progress text or read the log file in dialog window progress text |
25 | 25 | # |
| 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 | +# |
26 | 29 | #################################################################################################### |
27 | 30 |
|
28 | 31 |
|
@@ -70,7 +73,7 @@ secondsToWait="${4:-"86400"}" |
70 | 73 | # Parameter 5: Estimated Total Seconds |
71 | 74 | estimatedTotalSeconds="${5:-"120"}" |
72 | 75 |
|
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 ] |
74 | 77 | operationMode="${6:-""}" |
75 | 78 |
|
76 | 79 | # Parameter 7: Enables the webhook feature [ true | false ] |
@@ -1180,6 +1183,15 @@ if [[ ${ageInSeconds} -le ${secondsToWait} ]]; then |
1180 | 1183 | quitScript "0" |
1181 | 1184 | ;; |
1182 | 1185 |
|
| 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 | + |
1183 | 1195 | "Silent" ) # Don't leverage swiftDialog |
1184 | 1196 | notice "Inventory will NOT be updated …" |
1185 | 1197 | quitScript "0" |
@@ -1261,6 +1273,15 @@ elif [[ ${ageInSeconds} -ge ${secondsToWait} ]]; then |
1261 | 1273 | quitScript "0" |
1262 | 1274 | ;; |
1263 | 1275 |
|
| 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 | + |
1264 | 1285 | "Silent Inventory" ) # Update inventory, sans swiftDialog |
1265 | 1286 | infoOut "Inventory WILL BE updated, sans swiftDialog …" |
1266 | 1287 | /usr/local/bin/jamf recon -endUsername "${loggedInUser}" |
|
0 commit comments