mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-14 00:41:40 +08:00
On linux don't declare we installed to the system store (#18)
This commit is contained in:

committed by
Filippo Valsorda

parent
ce28959c70
commit
073ee25396
7
main.go
7
main.go
@@ -154,8 +154,13 @@ func (m *mkcert) install() {
|
|||||||
var printed bool
|
var printed bool
|
||||||
if !m.checkPlatform() {
|
if !m.checkPlatform() {
|
||||||
m.installPlatform()
|
m.installPlatform()
|
||||||
m.ignoreCheckFailure = true // TODO: replace with a check for a successful install
|
|
||||||
|
// 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! ⚡️")
|
log.Print("The local CA is now installed in the system trust store! ⚡️")
|
||||||
|
}
|
||||||
|
|
||||||
printed = true
|
printed = true
|
||||||
}
|
}
|
||||||
if hasFirefox && !m.checkFirefox() {
|
if hasFirefox && !m.checkFirefox() {
|
||||||
|
@@ -17,7 +17,8 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (m *mkcert) installPlatform() {
|
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() {}
|
func (m *mkcert) uninstallPlatform() {}
|
||||||
|
Reference in New Issue
Block a user