Skip to content

Instantly share code, notes, and snippets.

View matthewbodaly's full-sized avatar

Matthew matthewbodaly

View GitHub Profile
@matthewbodaly
matthewbodaly / o-chrome.mobileconfig
Last active January 21, 2017 05:48 — forked from opragel/o-chrome.mobileconfig
o-chrome.mobileconfig
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadContent</key>
<dict>
<key>com.google.Chrome</key>
@matthewbodaly
matthewbodaly / ea_check_for_config_profile.sh
Last active November 20, 2016 04:54 — forked from opragel/ea_check_for_config_profile.sh
ea_check_for_config_profile.sh
#!/bin/bash
CONFIGURATION_PROFILE_UUID="43EA456A-C3F4-42F8-B752-E285385D0838"
computerConfigProfiles=$(profiles -Lv | grep "name: $4" -4 | awk -F": " '/attribute: profileIdentifier/{print $NF}')
if [[ "$computerConfigProfiles" == *$CONFIGURATION_PROFILE_UUID* ]]; then
configCheckResult='T'
else
configCheckResult='F'
fi
printf "<result>%s</result>" "$configCheckResult"