Skip to content

Commit

Permalink
Adding more stuff and organizing
Browse files Browse the repository at this point in the history
  • Loading branch information
sphen13 committed Oct 19, 2017
1 parent 2c8ad1a commit 99d131e
Show file tree
Hide file tree
Showing 10 changed files with 282 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Block OSX Install/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# .DS_Store files!
.DS_Store

# our build directory
build/
82 changes: 82 additions & 0 deletions Block OSX Install/block_osx_install.mobileconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?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>PayloadType</key>
<string>com.apple.applicationaccess.new</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadIdentifier</key>
<string>com.example.config.applicationaccess</string>
<key>PayloadEnabled</key>
<true/>
<key>PayloadUUID</key>
<string>524512d1-193a-7bd2-cd4f-b25f842fd97b</string>
<key>PayloadDisplayName</key>
<string>Application Restrictions</string>
<key>familyControlsEnabled</key>
<true/>
<key>pathBlackList</key>
<array>
<string>/Applications/Install macOS High Sierra Beta.app</string>
<string>/Applications/Install macOS High Sierra.app</string>
</array>
<key>pathWhiteList</key>
<array>
<string>/</string>
</array>
<key>whiteList</key>
<array/>
</dict>
<dict>
<key>PayloadContent</key>
<dict>
<key>com.apple.SoftwareUpdate</key>
<dict>
<key>Forced</key>
<array>
<dict>
<key>mcx_preference_settings</key>
<dict>
<key>AllowPreReleaseInstallation</key>
<false/>
</dict>
</dict>
</array>
</dict>
</dict>
<key>PayloadEnabled</key>
<true/>
<key>PayloadIdentifier</key>
<string>MCXToProfile.02721c3d-31b9-4795-ac72-ca64f641a744.alacarte.customsettings.0e4f7d96-d611-407d-82bb-5da5cbd70b9f</string>
<key>PayloadType</key>
<string>com.apple.ManagedClient.preferences</string>
<key>PayloadUUID</key>
<string>0e4f7d96-d611-407d-82bb-5da5cbd70b9f</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</array>
<key>PayloadDescription</key>
<string>Block macOS Install</string>
<key>PayloadDisplayName</key>
<string>Block macOS Install</string>
<key>PayloadIdentifier</key>
<string>com.trmacs.block_osx_install</string>
<key>PayloadOrganization</key>
<string>Technology Revealed</string>
<key>PayloadRemovalDisallowed</key>
<false/>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>176EF199-E93F-46EE-9757-47C7CD66F7FC</string>
<key>PayloadScope</key>
<string>System</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>
22 changes: 22 additions & 0 deletions Block OSX Install/build-info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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>distribution_style</key>
<false/>
<key>identifier</key>
<string>com.github.munki.pkg.block_osx_install</string>
<key>install_location</key>
<string>/</string>
<key>name</key>
<string>block_osx_install-${version}.pkg</string>
<key>ownership</key>
<string>recommended</string>
<key>postinstall_action</key>
<string>none</string>
<key>suppress_bundle_relocation</key>
<true/>
<key>version</key>
<string>1.0.2</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?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>Disabled</key>
<false/>
<key>Label</key>
<string>block_osx_install</string>
<key>ProgramArguments</key>
<array>
<string>/Library/Scripts/block_osx_install.sh</string>
</array>
<key>WatchPaths</key>
<array>
<string>/Applications/Install macOS High Sierra.app/</string>
<string>/Applications/Install macOS High Sierra Beta.app/</string>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

#loggedinuser=`stat -f%Su /dev/console`

killall InstallAssistant
rm -rf "/Applications/Install macOS High Sierra Beta.app"
rm -rf "/Applications/Install macOS High Sierra.app"
#sudo -u "$loggedinuser" osascript -e 'tell app "System Events" to display alert "Upgrading your Operating System without approval violates our policy"'
3 changes: 3 additions & 0 deletions Block OSX Install/scripts/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
launchctl unload -w /Library/LaunchDaemons/block_osx_install.plist
launchctl load -w /Library/LaunchDaemons/block_osx_install.plist
File renamed without changes.
42 changes: 42 additions & 0 deletions pkgsinfo/OnDemand/MacPracticeClean.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?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>OnDemand</key>
<true/>
<key>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
<key>category</key>
<string>SelfService</string>
<key>description</key>
<string>Purges local MacPractice cache</string>
<key>developer</key>
<string>TR</string>
<key>display_name</key>
<string>MacPractice Cleaner</string>
<key>installer_type</key>
<string>nopkg</string>
<key>minimum_os_version</key>
<string>10.4.0</string>
<key>name</key>
<string>MacPractice Cleaner</string>
<key>postinstall_script</key>
<string>#!/bin/bash
currentuser=$(defaults read /Library/Preferences/com.apple.loginwindow.plist lastUserName)
echo ""
echo "======Purging MacPractice Cache ======"
rm -vrf "/Users/$currentuser/Library/Application Support/MacPracticeClient"
exit 0
</string>
<key>version</key>
<string>1.0</string>
<key>blocking_applications</key>
<array>
<string>MacPractice MD</string>
</array>
</dict>
</plist>
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<?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.microsoft.autoupdate2</key>
<dict>
<key>Forced</key>
<array>
<dict>
<key>mcx_preference_settings</key>
<dict>
<key>HowToCheck</key>
<string>AutomaticDownload</string>
<key>Applications</key>
<dict>
<key>/Applications/Microsoft Excel.app</key>
<dict>
<key>Application ID</key>
<string>XCEL15</string>
<key>LCID</key>
<integer>1033</integer>
</dict>
<key>/Applications/Microsoft OneNote.app</key>
<dict>
<key>Application ID</key>
<string>ONMC15</string>
<key>LCID</key>
<string>1033</string>
</dict>
<key>/Applications/Microsoft Outlook.app</key>
<dict>
<key>Application ID</key>
<string>OPIM15</string>
<key>LCID</key>
<integer>1033</integer>
</dict>
<key>/Applications/Microsoft PowerPoint.app</key>
<dict>
<key>Application ID</key>
<string>PPT315</string>
<key>LCID</key>
<integer>1033</integer>
</dict>
<key>/Applications/Microsoft Word.app</key>
<dict>
<key>Application ID</key>
<string>MSWD15</string>
<key>LCID</key>
<integer>1033</integer>
</dict>
<key>/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app</key>
<dict>
<key>Application ID</key>
<string>MSau03</string>
<key>LCID</key>
<integer>1033</integer>
</dict>
</dict>
</dict>
</dict>
</array>
</dict>
</dict>
<key>PayloadEnabled</key>
<true/>
<key>PayloadIdentifier</key>
<string>MCXToProfile.67ad2621-b510-4060-b971-7f7cf51506c9.alacarte.customsettings.c00e472d-4cb4-4231-8fd4-c7fa866efc00</string>
<key>PayloadType</key>
<string>com.apple.ManagedClient.preferences</string>
<key>PayloadUUID</key>
<string>c00e472d-4cb4-4231-8fd4-c7fa866efc00</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</array>
<key>PayloadDescription</key>
<string>Enable Automatic Download and Installation of Microsoft Office 2016 Updates</string>
<key>PayloadDisplayName</key>
<string>Enable Automatic Download and Installation of Microsoft Office 2016 Updates</string>
<key>PayloadIdentifier</key>
<string>com.company.profile.EnableAutomaticDownloadAndInstall</string>
<key>PayloadOrganization</key>
<string></string>
<key>PayloadRemovalDisallowed</key>
<false/>
<key>PayloadScope</key>
<string>System</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>67ad2621-b510-4060-b971-7f7cf51506c9</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>

0 comments on commit 99d131e

Please sign in to comment.