-
Notifications
You must be signed in to change notification settings - Fork 0
/
OSX10.8Upd.sh
executable file
·31 lines (27 loc) · 1.57 KB
/
OSX10.8Upd.sh
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
#!/bin/sh
if [ `uname -r` = 12.3.0 ]; then
/usr/bin/sudo /usr/sbin/softwareupdate -d OSXUpd10.8.4-10.8.4
/usr/libexec/PListBuddy -c "Copy CompleteProducts InstallAtLogout" /Library/Updates/index.plist
/usr/bin/touch /var/db/.SoftwareUpdateAtLogout
/bin/chmod og-r /var/db/.SoftwareUpdateAtLogout
/usr/libexec/PListBuddy -c "Add -RootInstallMode STRING YES" /var/db/.SoftwareUpdateOptions
/usr/libexec/PListBuddy -c "Add -SkipConfirm STRING YES" /var/db/.SoftwareUpdateOptions
/bin/chmod og-r /var/db/.SoftwareUpdateOptions
elif [ `uname -r` = 12.2.1 ]; then
/usr/bin/sudo /usr/sbin/softwareupdate -d OSXUpdCombo10.8.4-10.8.4
/usr/libexec/PListBuddy -c "Copy CompleteProducts InstallAtLogout" /Library/Updates/index.plist
/usr/bin/touch /var/db/.SoftwareUpdateAtLogout
/bin/chmod og-r /var/db/.SoftwareUpdateAtLogout
/usr/libexec/PListBuddy -c "Add -RootInstallMode STRING YES" /var/db/.SoftwareUpdateOptions
/usr/libexec/PListBuddy -c "Add -SkipConfirm STRING YES" /var/db/.SoftwareUpdateOptions
/bin/chmod og-r /var/db/.SoftwareUpdateOptions
elif [ `uname -r` = 12.2.0 ]; then
/usr/bin/sudo /usr/sbin/softwareupdate -d OSXUpdCombo10.8.4-10.8.4
/usr/libexec/PListBuddy -c "Copy CompleteProducts InstallAtLogout" /Library/Updates/index.plist
/usr/bin/touch /var/db/.SoftwareUpdateAtLogout
/bin/chmod og-r /var/db/.SoftwareUpdateAtLogout
/usr/libexec/PListBuddy -c "Add -RootInstallMode STRING YES" /var/db/.SoftwareUpdateOptions
/usr/libexec/PListBuddy -c "Add -SkipConfirm STRING YES" /var/db/.SoftwareUpdateOptions
/bin/chmod og-r /var/db/.SoftwareUpdateOptions
fi
exit 0