Files
munki/code/client/100.managedinstalllogout.hook
T
Greg Neagle 55bce871e4 Initial import
git-svn-id: http://munki.googlecode.com/svn/trunk@2 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-01-14 21:41:25 +00:00

17 lines
506 B
Bash
Executable File

#!/bin/sh
MIDIR=`defaults read /Library/Preferences/ManagedInstalls managed_install_dir`
IHOOK="/Applications/Utilities/radmind/iHook.app/Contents/MacOS/iHook"
SCRIPT="/Users/gneagle/Documents/managedinstalls/code/client/ManagedInstaller"
ARGS="-i"
if [ "$MIDIR" != "" ]; then
CACHEDIR="$MIDIR/Cache"
if [ -d "$CACHEDIR" ]; then
CACHECOUNT=`ls -1 "$CACHEDIR" | wc -l`
if [ $CACHECOUNT -gt 0 ]; then
"$IHOOK" --script="$SCRIPT" "$ARGS"
fi
fi
fi