Skip to content

Instantly share code, notes, and snippets.

View macmule's full-sized avatar

macmule macmule

View GitHub Profile
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
###########################################################################
# VARIABLES
###########################################################################
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
# HARDCODED VALUES ARE SET HERE
# FQDN of NTP
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
####################################################################################################
#
# DEFINE VARIABLES
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
# Gets the UUID of the Partition "Users HD"
usersUUID=`diskutil info Users\ HD | grep Volume\ UUID: | awk '{print $3}'`
#!/bin/bash
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
if [ -n "$(/usr/bin/profiles list -type provisioning | /usr/bin/grep c9434bc1-de69-4727-85f7-4868f80feed6)" ]
then
/bin/echo "iMovie_27_Sep provisioning profile found, removing..."
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
#Check to see if Adobe Unit Types is installed
if [ -d /Library/ScriptingAdditions/Adobe\ Unit\ Types.osax ];
then
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
# Check to see if /Users/Shared exists..
if [ -d "/Users/Shared/" ];
then
#!/bin/bash
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
updateServerFQDN="UPDATES.MYCOMPANY.COM"
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://"$updateServerFQDN":/index.sucatalog
#!/bin/bash
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
catalogURL=$(defaults read /Library/Preferences/com.apple.SoftwareUpdate CatalogURL)
if [ -z $catalogURL ];
+-------------+-------------------------------+
| computer_id | default_distribution_point_id |
+-------------+-------------------------------+
| 200 | 8 |
| 3 | 14 |
| 7 | 7 |
| 8 | 6 |
| 9 | 4 |
| 10 | 8 |
| 292 | 12 |