-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathRapidSecurityResponse-13.3.1a.pkginfo
66 lines (60 loc) · 2.43 KB
/
RapidSecurityResponse-13.3.1a.pkginfo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>catalogs</key>
<array>
<string>testing</string>
</array>
<key>description</key>
<string>Rapid Security Responses deliver important security improvements between software updates. They deliver important security improvements between software updates — for example, improvements to the Safari web browser, the WebKit framework stack, or other critical system libraries. They may also be used to mitigate some security issues more quickly, such as issues that might have been exploited or reported to exist "in the wild."
More details in https://support.apple.com/en-us/HT201224</string>
<key>display_name</key>
<string>Rapid Security Response</string>
<key>installcheck_script</key>
<string>#!/bin/zsh
# Define desired extra "version"
desired_extra='(a)'
# Make sure a real user is logged in
loggedin_user="$(/usr/bin/stat -f%Su /dev/console)"
if [[ $loggedin_user == "" || $loggedin_user == "root" || $loggedin_user == "_mbsetupuser" ]]; then
/bin/echo "No real user account logged in, so considering installed for now"
exit 1
fi
# Get the current extra version, if it even exists...
current_extra=$(/usr/bin/sw_vers -productVersionExtra)
# If the result is empty, consider not installed
if [[ -z "$current_extra" ]]; then
/bin/echo "ProductVersionExtra is missing and should be $desired_extra"
exit 0
# If it's present but the wrong version, then consider not installed
elif [[ "$current_extra" != "$desired_extra" ]]; then
/bin/echo "ProductVersionExtra is currently $current_extra and should be $desired_extra"
exit 0
# Otherwise, consider installed
else
/bin/echo "ProductVersionExtra is already $desired_extra"
exit 1
fi
</string>
<key>installer_type</key>
<string>nopkg</string>
<key>maximum_os_version</key>
<string>13.3.1</string>
<key>minimum_os_version</key>
<string>13.3.1</string>
<key>name</key>
<string>RapidSecurityResponse</string>
<key>postinstall_script</key>
<string>#!/bin/zsh
/bin/echo "Opening Software Update in System Settings..."
open /System/Library/PreferencePanes/SoftwareUpdate.prefPane
</string>
<key>unattended_install</key>
<false/>
<key>uninstallable</key>
<false/>
<key>version</key>
<string>13.3.1 (a)</string>
</dict>
</plist>