-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pre-Release! Not Fully Tested! Consolidated installer paths to variable. Added use of Extension Attribute to check if machine already has copy of installer. Added logic to support EA. First Boot script will try to remove both file locations.
- Loading branch information
Joshua Roskos
committed
Mar 10, 2017
1 parent
ab96979
commit fa98ccc
Showing
3 changed files
with
64 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env python | ||
|
||
import plistlib | ||
import os.path | ||
|
||
installInfo = "/Applications/Install macOS Sierra.app/Contents/SharedSupport/InstallInfo.plist" | ||
|
||
present = os.path.isfile(installInfo) | ||
if present == True: | ||
plist = plistlib.readPlist(installInfo) | ||
version = plist["System Image Info"]["version"] | ||
print '<result>%s</result>' % version | ||
else: | ||
print '<result>Installer Not Present</result>' |
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
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