Created
April 7, 2016 11:13
-
-
Save grahamgilbert/2cfcf54e7f41dea6ff93872154ebf43a to your computer and use it in GitHub Desktop.
This file contains hidden or 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//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>RestartAction</key> | |
<string>RequireRestart</string> | |
<key>_metadata</key> | |
<dict> | |
<key>created_by</key> | |
<string>grahamgilbert</string> | |
<key>creation_date</key> | |
<date>2014-10-09T20:24:11Z</date> | |
<key>munki_version</key> | |
<string>2.0.0.2238</string> | |
<key>os_version</key> | |
<string>10.10</string> | |
</dict> | |
<key>autoremove</key> | |
<false/> | |
<key>OnDemand</key> | |
<true/> | |
<key>catalogs</key> | |
<array> | |
<string>production</string> | |
</array> | |
<key>category</key> | |
<string>System</string> | |
<key>description</key> | |
<string>Repairs disk permissions. Use when instructed by the helpdesk</string> | |
<key>display_name</key> | |
<string>Repair Disk Permissions</string> | |
<key>installer_type</key> | |
<string>nopkg</string> | |
<key>minimum_os_version</key> | |
<string>10.8.0</string> | |
<key>name</key> | |
<string>RepairPermissions</string> | |
<key>postinstall_script</key> | |
<string>#!/usr/bin/python | |
import subprocess | |
# Run the repair permissions | |
cmd = ['/usr/sbin/diskutil', 'repairPermissions', '/'] | |
task = subprocess.Popen(cmd).communicate()[0] | |
</string> | |
<key>version</key> | |
<string>1.0</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment