@ -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() {
@ -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()) ]