mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-14 00:41:40 +08:00
truststore_linux: remove PATH check for SystemTrustCommand
It's hard to predict what the PATH that sudo will use, and there shouldn't be many cases where we don't find the command anyway. Fixes #188
This commit is contained in:
@@ -45,9 +45,6 @@ func init() {
|
|||||||
SystemTrustFilename = "/usr/share/pki/trust/anchors/%s.pem"
|
SystemTrustFilename = "/usr/share/pki/trust/anchors/%s.pem"
|
||||||
SystemTrustCommand = []string{"update-ca-certificates"}
|
SystemTrustCommand = []string{"update-ca-certificates"}
|
||||||
}
|
}
|
||||||
if SystemTrustCommand != nil && !binaryExists(SystemTrustCommand[0]) {
|
|
||||||
SystemTrustCommand = nil
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *mkcert) systemTrustFilename() string {
|
func (m *mkcert) systemTrustFilename() string {
|
||||||
|
Reference in New Issue
Block a user