mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Revert "Don't die when daemon cannot read certs.d"
This reverts commit2808762b27
. This exception was added for rootless mode, but superseded by the follow-up commitf4fa98f583
, which uses a different path to look for the certs when running in rootless mode Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
9fee52d544
commit
e6281b1b3f
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ func hasFile(files []os.FileInfo, name string) bool {
|
||||||
// provided TLS configuration.
|
// provided TLS configuration.
|
||||||
func ReadCertsDirectory(tlsConfig *tls.Config, directory string) error {
|
func ReadCertsDirectory(tlsConfig *tls.Config, directory string) error {
|
||||||
fs, err := ioutil.ReadDir(directory)
|
fs, err := ioutil.ReadDir(directory)
|
||||||
if err != nil && !os.IsNotExist(err) && !os.IsPermission(err) {
|
if err != nil && !os.IsNotExist(err) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue