1
General Discussion / Re: How can you force the Acme.sh Client Plugin to run via cron?
« on: May 17, 2023, 08:41:01 pm »
Ok, so commenting out the code like so:
Works now - this is the sanity check that exists to prevent spamming I provider. In my case, since I am the provider I am ok with spamming my own service. However, I think this is a terrible hack - if you can even call it that because sanity checks are a good idea.
Anyone know where `force` is properly set? I would have assumed config.xml, but it seems not to be so - or I don't understand OPNSense enough yet.
Code: [Select]
// Decide whether or not to continue.
//if (!($this->needsRenewal()) and !($this->force)) {
// Renewal not required. Do nothing.
// LeUtils::log("issue/renewal not required for certificate: " . (string)$this->config->name);
// return false;
//}
Works now - this is the sanity check that exists to prevent spamming I provider. In my case, since I am the provider I am ok with spamming my own service. However, I think this is a terrible hack - if you can even call it that because sanity checks are a good idea.
Anyone know where `force` is properly set? I would have assumed config.xml, but it seems not to be so - or I don't understand OPNSense enough yet.