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 | |
# Adapted from script by "henkb"; http://deploystudio.com/Forums/viewtopic.php?id=4914 | |
echo "" | |
echo "### Checking filesystem architecture on disk0 (HFS or CoreStorage). ###" | |
TYPE=`diskutil list | grep -A4 /dev/disk0 | tail -n 1 | awk '{print $2}' | cut -d "_" -f2` | |
if [ "$TYPE" = "HFS" ] | |
then echo "# Architecture is HFS. Skipping additional steps and continue with regular DeployStudio-workflow." | |
elif [ "$TYPE" = "CoreStorage" ] |
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 | |
### ACTIVE DIRECTORY USER PERMISSIONS SCRIPT ### | |
### by Graham Pugh | |
### Props to Jeff Kelley, Graham Gilbert and various others for elements of script | |
### This script looks at the "Allow Administration By" field of the | |
### `dsconfigad -show` command and checks each of the Active Directory users | |
### with mobile accounts on the computer to check whether they should have | |
### local admin rights. It amends each user's membership of the local |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.github.grahampugh.checklocaladmin</string> | |
<key>Program</key> | |
<string>/Library/Management/checklocaladmin/check_local_admin.sh</string> | |
<key>RunAtLoad</key> | |
<true/> |
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 | |
SCRIPT_NAME=`basename "${0}"` | |
VERSION=1.1 | |
SYS_VERS=`sw_vers -productVersion | awk -F. '{ print $2 }'` | |
if [ ${SYS_VERS} -lt 7 ] | |
then | |
echo "This script requires OS X 10.7 or later!" >>/dev/stderr | |
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
#!/bin/bash | |
### A script to search your Munki repo and offer to delete items. Use with care! | |
### It will search all directories including pkgs, pkgsinfo and icons. | |
### Syntax: /path/to/munkirm -d <search-term> | |
### For example, /path/to/munkirm -d xcode | |
### Search is case insensitive. | |
### Options are y or Y to delete, n, N or anything else to skip, and q or Q to quit | |
### If any changes are made, `makecatalogs` is run | |
### Put munkirm in /usr/local/munki/ if you wish to run from all directories |
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 | |
### A script to find which manifests contain references to a package or other manifest via included_manifests | |
### Your Munki repository must be mounted as a volume | |
### Syntax: | |
### $ ./manifest-find.sh -f <package or manifest name> | |
### Examples: | |
### $ ./manifest-find.sh -f Xcode | |
### $ ./manifest-find.sh -f _regular_users |
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
<?php | |
require_once( 'cfpropertylist-1.1.2/CFPropertyList.php' ); | |
// Default catalog | |
$catalog = 'standard'; | |
// Get the varibles passed by the enroll script | |
$identifier1 = $_POST["identifier1"]; | |
$identifier2 = $_POST["identifier2"]; |
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 | |
# uncomment these to force a reinstall | |
# dpkg -r opt-maple-18 opt-maple-18-modules | |
# rm -rf /opt/matlab-R2014a | |
# matlab | |
if [ ! -f /opt/matlab-R2014a/bin/matlab ]; then | |
wget -O /opt-matlab-R2014a--plus-module.tar.bz2 http://packages.bris.ac.uk/unpackaged/zone_d/opt-matlab-R2014a--plus-module.tar.bz2 | |
tar xvjf /opt-matlab-R2014a--plus-module.tar.bz2 -C / |
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 | |
SCRIPT_NAME=`basename "${0}"` | |
SCRIPT_PATH=`dirname "${0}"` | |
echo "${SCRIPT_NAME} - v1.0 ("`date`")" | |
if [ ${#} -ne 1 ] | |
then | |
echo "Command: ${SCRIPT_NAME} ${*}" |
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 | |
# This postinstall script runs all the scripts that the package placed into the target | |
# Library, and then deletes the folder that was previously created to remove the cruft | |
log() { | |
echo "${@}" 2>&1 | |
logger -t Munki installer "${@}" | |
} |
OlderNewer