diff --git a/dep_hardcode.go b/dep_hardcode.go index f9fc8a34..02dd164c 100644 --- a/dep_hardcode.go +++ b/dep_hardcode.go @@ -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, } diff --git a/serve.go b/serve.go index 433d71a7..cc14d371 100644 --- a/serve.go +++ b/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