Skip to content

Commit

Permalink
Actually copy the plist
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamgilbert committed Oct 1, 2015
1 parent 6b31169 commit aa68bea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
first-boot.pkg
test.plist
test.plist
*.pyc
File renamed without changes.
6 changes: 6 additions & 0 deletions first-boot-pkg
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,12 @@ def main():
# Set the permissions
os.chmod(os.path.join(launchAgent_dir, 'se.gu.it.LoginLog.plist'), 0644)
os.chown(os.path.join(launchAgent_dir, 'se.gu.it.LoginLog.plist'), 0, 0)

shutil.copy(os.path.join(script_dir, 'Resources', 'se.gu.it.LoginLog.user.plist'),
os.path.join(launchAgent_dir, 'se.gu.it.LoginLog.user.plist'))
# Set the permissions
os.chmod(os.path.join(launchAgent_dir, 'se.gu.it.LoginLog.user.plist'), 0644)
os.chown(os.path.join(launchAgent_dir, 'se.gu.it.LoginLog.user.plist'), 0, 0)

helperTools_dir = os.path.join(root, 'Library', 'PrivilegedHelperTools')
os.makedirs(helperTools_dir)
Expand Down

0 comments on commit aa68bea

Please sign in to comment.