This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
file="/.metadata_never_index" | |
if [ -f "$file" ] | |
then | |
echo "<result>found</result>" | |
else | |
echo "<result>not found</result>" | |
fi | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
printsharing=cupsctl | grep _share_printers | |
echo $printsharing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
javaVersion=`defaults read /Library/Java/Home/bundle/version CFBundleVersion` | |
if [ -e /Library/Java/Home/bundle/ ]; then | |
echo "<result>$javaVersion</result>" | |
else | |
echo "<result>Not Installed</result>" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
javaVersion=`defaults read /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Info CFBundleIdentifier` | |
if [ "$javaVersion" = "com.oracle.java.JavaAppletPlugin" ] ; then | |
echo "<result>Oracle</result>" | |
if [ "$javaVersion" = "com.apple.java.JavaAppletPlugin" ] ; then | |
echo "<result>Apple</result>" | |
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -f $HOME/.Dockset ] | |
then | |
echo "<result>found</result>" | |
else | |
echo "<result>not found</result>" | |
fi | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
NoRestartUpdates=`/usr/bin/sudo /usr/sbin/softwareupdate -l | /usr/bin/grep -v restart | /usr/bin/grep -B1 recommended | /usr/bin/grep -v recommended | /usr/bin/awk '{print $2}' | /usr/bin/awk '{printf "%s ", $0}'` | |
/usr/bin/sudo /usr/sbin/softwareupdate -i $NoRestartUpdates | |
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SWUL=`/usr/sbin/softwareupdate -l | /usr/bin/awk '{printf "%s", $0}'` | |
SWULER=`/usr/sbin/softwareupdate -l 2>&1 | /usr/bin/head -1` | |
NoRestartUpdates=`/usr/sbin/softwareupdate -l | /usr/bin/grep -v restart | /usr/bin/grep -B1 recommended | /usr/bin/grep -v recommended | /usr/bin/awk '{print $2}' | /usr/bin/awk '{printf "%s ", $0}'` | |
osvers=`sw_vers -productVersion | awk -F. '{print $2}'` | |
# Thanks go out to Greg Naegle, Rich Trouton, Allen Golby, ##osx-server group on Freenode, and everyone who gave feedback | |
# Lion cues taken from http://managingosx.wordpress.com/2009/10/12/apple-software-update-options/ not tested, hashed out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
hiddenflagstatus=`stat -r /mach_kernel | awk '{print $15}'` | |
if [ "$hiddenflagstatus" = "0" ] | |
then | |
chflags hidden /mach_kernel | |
else | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Processing MSOffice2011Updates.munki... | |
Traceback (most recent call last): | |
File "/usr/local/bin/autopkg", line 1212, in <module> | |
sys.exit(main(sys.argv)) | |
File "/usr/local/bin/autopkg", line 1206, in main | |
exit(subcommands[verb]['function'](argv)) | |
File "/usr/local/bin/autopkg", line 1032, in run_recipes | |
autopackager.process_cli_overrides(recipe, cli_values) | |
File "/Library/AutoPkg/autopkglib/__init__.py", line 293, in process_cli_overrides | |
update_data(self.env, key, value) |
OlderNewer