Add open db locally to check one domain sub

This commit is contained in:
Brian Read 2025-02-20 11:05:31 +00:00
parent 444fc11ead
commit 38cd36bd70
2 changed files with 5 additions and 1 deletions

View File

@ -553,6 +553,7 @@ sub get_my_ip {
sub update_one_domain {
my ($self, $domain) = @_;
my $ddb = esmith::DomainsDB->open() || die("Couldn't open Domains db");
return "$domain not domain" unless ($ddb->get($domain) || $hdb->get($domain));
($domain) = ($domain =~ /([\w\p{L}.]+)/);
my $output = `/etc/e-smith/events/actions/letsencrypt-setdomains " " $domain `;

View File

@ -1,6 +1,6 @@
%define name smeserver-certificates
%define version 11.0
%define release 3
%define release 4
Summary: This is what smeserver-certificates does.
Name: %{name}
Version: %{version}
@ -25,6 +25,9 @@ AutoReqProv: no
%changelog
* Thu Feb 20 2025 Brian Read <brianr@koozali.org> 11.0-4.sme
- Add local open DB in check on domain sub [SME: 12932]
* Mon Feb 17 2025 Brian Read <brianr@koozali.org> 11.0-3.sme
- Change status in template to use helper script to pre-set dropdown value [SME: 12923]
- Update Custom routines to openb DB when required, not relying on global open [SME: 12695]