installapplication

This commit is contained in:
Victor Vrantchan
2017-03-19 19:45:40 +00:00
parent 73a17f46e6
commit 4f3c8fa047
2 changed files with 11 additions and 1 deletions

View File

@@ -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,
}

View File

@@ -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