ソースを参照

Fix error condition for checking cert timestamps

master
Chris Smith 5年前
コミット
f523b6a4ef
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      certs/deployer.go

+ 1
- 1
certs/deployer.go ファイルの表示

@@ -81,7 +81,7 @@ func (c *CertificateDeployer) deployFile(name string, content []byte, modTime ti
81 81
 	}
82 82
 
83 83
 	info, err := os.Stat(target)
84
-	if err != nil && info.ModTime().After(modTime) {
84
+	if err == nil && info.ModTime().After(modTime) {
85 85
 		c.logger.Debugf("Not writing %s as it was modified more recently than our cert", target)
86 86
 		return
87 87
 	}

読み込み中…
キャンセル
保存