Adrian Heine 5 years ago
parent
commit
f43ba0da97
  1. 1
      src/symbols/acme/cert.rs
  2. 2
      src/symbols/wordpress/translation.rs

1
src/symbols/acme/cert.rs

@ -45,7 +45,6 @@ impl<'a> Symbol for AcmeCert<'a> {
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()]));
if stdout != format!("subject=CN = {}\nCertificate will not expire\n", self.domain).as_bytes() {
return Ok(false);

2
src/symbols/wordpress/translation.rs

@ -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> {
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…
Cancel
Save