mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-10 11:36:06 +08:00
installapplication
This commit is contained in:
@@ -68,9 +68,19 @@ func hardcodeList(svc command.Service, udid string) error {
|
||||
},
|
||||
}
|
||||
|
||||
munki := &mdm.CommandRequest{
|
||||
RequestType: "InstallApplication",
|
||||
UDID: udid,
|
||||
InstallApplication: mdm.InstallApplication{
|
||||
ManifestURL: "https://dev.micromdm.io/repo/munkitools-2.8.2.2855.plist",
|
||||
ManagementFlags: 1,
|
||||
},
|
||||
}
|
||||
|
||||
var requests = []*mdm.CommandRequest{
|
||||
devInfo,
|
||||
installProfile,
|
||||
munki,
|
||||
devConfigured,
|
||||
}
|
||||
|
||||
|
||||
2
serve.go
2
serve.go
@@ -160,7 +160,7 @@ func serve(args []string) error {
|
||||
r.Handle("/v1/commands", commandHandlers.NewCommandHandler).Methods("POST")
|
||||
|
||||
if *flRepoPath != "" {
|
||||
r.Handle("/repo/", http.StripPrefix("/repo/", http.FileServer(http.Dir(*flRepoPath))))
|
||||
r.PathPrefix("/repo/").Handler(http.StripPrefix("/repo/", http.FileServer(http.Dir(*flRepoPath))))
|
||||
}
|
||||
|
||||
var handler http.Handler
|
||||
|
||||
Reference in New Issue
Block a user