Skip to content

Commit 8877549

Browse files
apns command switches are deprecated, warn user (micromdm#412)
1 parent 6cda0a2 commit 8877549

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmd/micromdm/serve.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ func serve(args []string) error {
124124
if !*flTLS && (*flTLSCert != "" || *flTLSKey != "") {
125125
return errors.New("cannot set -tls=false and supply -tls-cert or -tls-key")
126126
}
127+
if *flAPNSCertPath != "" || *flAPNSKeyPass != "" || *flAPNSKeyPath != "" {
128+
stdlog.Println("-apns-cert, -apns-password, and -apns-key switches are deprecated. please transition to `mdmctl mdmcert upload` instead")
129+
}
127130

128131
logger := log.NewLogfmtLogger(os.Stderr)
129132
stdlog.SetOutput(log.NewStdlibAdapter(logger)) // force structured logs

0 commit comments

Comments
 (0)