GithubHelp home page GithubHelp logo

erikng / installapplicationsdemo Goto Github PK

View Code? Open in Web Editor NEW
30.0 5.0 12.0 274.23 MB

a demo repo for InstallApplications

Python 93.11% Shell 0.14% C 1.66% C++ 0.43% Tcl 3.73% Makefile 0.23% Batchfile 0.08% HTML 0.42% CSS 0.01% Objective-C 0.02% Roff 0.09% DTrace 0.01% VBScript 0.01% PLSQL 0.05% XSLT 0.01% PowerShell 0.05%

installapplicationsdemo's Introduction

InstallApplications Demo

This repository is a full example of how to use InstallApplications in a production environment.

It has been updated for the new Python 3.9 embedded version of InstallApplications. This version should support M1 macs

Some interesting things to look at:

  • a fork of dockutil for use exclusively with the embedded Python
  • a script to bless VM's for use with FileVault encryption
  • a script to silently caffeinate a machine and continue on with provisioning
  • a script to customize DEPNotify, as well as examples in other scripts to further give information to the user
  • a script to bootstrap Munki with a specific "DEP" provisioning manifest
  • a script to silently run Munki in "auto" mode after provisioning is complete
  • a script to enable Munki's LaunchDaemons without requiring a reboot, utilizing official Munki packages
  • a script to show a basic example of how the preflight works, enabling you to only run InstallApplications when needed
  • a user script to intelligently launch DEPNotify
  • a user script to intelligently configure a dock

installapplicationsdemo's People

Contributors

erikng avatar gmarnin avatar macjustice avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

installapplicationsdemo's Issues

com.apple.dock.plist not found in depnotify_user_launcher.py

Hi *,

I have a strange behaviour on one of our macs:

2021-10-04 22:59:14.439 Python[1247:19454] [InstallApplications] Running Script: /Library/installapplications/userscripts/depnotify_user_launcher.py 
2021-10-04 22:59:14.703 Python[1247:19454] [InstallApplications] Output on stdout:
2021-10-04 22:59:14.703 Python[1247:19454] [InstallApplications] 
2021-10-04 22:59:14.703 Python[1247:19454] [InstallApplications] Received non-zero exit code:
2021-10-04 22:59:14.703 Python[1247:19454] [InstallApplications] Traceback (most recent call last):
  File "/Library/installapplications/userscripts/depnotify_user_launcher.py", line 169, in <module>
    main()
  File "/Library/installapplications/userscripts/depnotify_user_launcher.py", line 134, in main
    if os.stat(plist_path).st_uid == os.stat('/dev/console').st_uid:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/<replacedForGithubIssue>/Library/Preferences/com.apple.dock.plist'
2021-10-04 22:59:14.704 Python[1247:19454] [InstallApplications] Failed to run user script!

Does anybody know when this happens?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.