From 073ee25396d221758bcb1bb6948e299fcb2d0c1b Mon Sep 17 00:00:00 2001 From: Adam Shannon Date: Fri, 29 Jun 2018 15:02:23 -0500 Subject: [PATCH] On linux don't declare we installed to the system store (#18) --- main.go | 9 +++++++-- truststore_linux.go | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 9fa3f46..9b13e13 100644 --- a/main.go +++ b/main.go @@ -154,8 +154,13 @@ func (m *mkcert) install() { var printed bool if !m.checkPlatform() { m.installPlatform() - m.ignoreCheckFailure = true // TODO: replace with a check for a successful install - log.Print("The local CA is now installed in the system trust store! ⚡️") + + // TODO: replace with a check for a successful install, drop OS check + m.ignoreCheckFailure = true + if runtime.GOOS != "linux" { + log.Print("The local CA is now installed in the system trust store! ⚡️") + } + printed = true } if hasFirefox && !m.checkFirefox() { diff --git a/truststore_linux.go b/truststore_linux.go index 7ba6760..c488688 100644 --- a/truststore_linux.go +++ b/truststore_linux.go @@ -17,7 +17,8 @@ var ( ) func (m *mkcert) installPlatform() { - log.Fatalf("-install is not yet supported on Linux 😣\nYou can manually install the root certificate at %q in the meantime.", filepath.Join(m.CAROOT, rootName)) + log.Println(" -install is not yet fully supported on Linux 😣") + log.Printf("You can manually install the root certificate at %q in the meantime.", filepath.Join(m.CAROOT, rootName)) } func (m *mkcert) uninstallPlatform() {}