Fix
This commit is contained in:
parent
eadd5f5b07
commit
f43ba0da97
2 changed files with 1 additions and 2 deletions
|
|
@ -45,7 +45,6 @@ impl<'a> Symbol for AcmeCert<'a> {
|
||||||
return Ok(false);
|
return Ok(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: check who signed it
|
|
||||||
let stdout = try!(self.command_runner.get_output("openssl", &["x509", "-in", &self.get_cert_path(), "-noout", "-subject", "-checkend", &(30*DAYS_IN_SECONDS).to_string()]));
|
let stdout = try!(self.command_runner.get_output("openssl", &["x509", "-in", &self.get_cert_path(), "-noout", "-subject", "-checkend", &(30*DAYS_IN_SECONDS).to_string()]));
|
||||||
if stdout != format!("subject=CN = {}\nCertificate will not expire\n", self.domain).as_bytes() {
|
if stdout != format!("subject=CN = {}\nCertificate will not expire\n", self.domain).as_bytes() {
|
||||||
return Ok(false);
|
return Ok(false);
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ impl<'a, C, D, R> Symbol for WordpressTranslation<'a, C, D, R> where C: Deref<Ta
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_prerequisites(&self) -> Vec<Resource> {
|
fn get_prerequisites(&self) -> Vec<Resource> {
|
||||||
vec![ Resource::new("dir", Path::new(self.path.as_ref()).join("wp-content/languages").to_string_lossy() ) ]
|
vec![ Resource::new("dir", self.path.as_ref()) ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue