Compare commits
No commits in common. "master" and "11_0-2_el8_sme" have entirely different histories.
master
...
11_0-2_el8
@ -16,11 +16,11 @@ use constant FALSE => 0;
|
|||||||
use constant TRUE => 1;
|
use constant TRUE => 1;
|
||||||
|
|
||||||
#The most common ones
|
#The most common ones
|
||||||
#our $cdb = esmith::ConfigDB->open() || die("Couldn't open config db");
|
our $cdb = esmith::ConfigDB->open() || die("Couldn't open config db");
|
||||||
#our $adb = esmith::AccountsDB->open() || die("Couldn't open Accounts db");
|
our $adb = esmith::AccountsDB->open() || die("Couldn't open Accounts db");
|
||||||
#our $ndb = esmith::NetworksDB->open() || die("Couldn't open Network db");
|
our $ndb = esmith::NetworksDB->open() || die("Couldn't open Network db");
|
||||||
#our $hdb = esmith::HostsDB->open() || die("Couldn't open Hosts db");
|
our $hdb = esmith::HostsDB->open() || die("Couldn't open Hosts db");
|
||||||
#our $ddb = esmith::DomainsDB->open() || die("Couldn't open Domains db");
|
our $ddb = esmith::DomainsDB->open() || die("Couldn't open Domains db");
|
||||||
|
|
||||||
# Validation routines - parameters for each panel
|
# Validation routines - parameters for each panel
|
||||||
sub validate_LIST {
|
sub validate_LIST {
|
||||||
@ -161,7 +161,6 @@ sub validate_CHECKONEDOMAIN {
|
|||||||
# Get singleton data for each panel
|
# Get singleton data for each panel
|
||||||
sub get_data_for_panel_LIST {
|
sub get_data_for_panel_LIST {
|
||||||
|
|
||||||
my $cdb = esmith::ConfigDB->open() || die("Couldn't open config db");
|
|
||||||
# Return a hash with the fields required which will be loaded into the shared data
|
# Return a hash with the fields required which will be loaded into the shared data
|
||||||
my $c = shift;
|
my $c = shift;
|
||||||
|
|
||||||
@ -186,7 +185,6 @@ sub get_data_for_panel_PARAMS {
|
|||||||
|
|
||||||
# Return a hash with the fields required which will be loaded into the shared data
|
# Return a hash with the fields required which will be loaded into the shared data
|
||||||
my $c = shift;
|
my $c = shift;
|
||||||
my $cdb = esmith::ConfigDB->open() || die("Couldn't open config db");
|
|
||||||
my %ret = (
|
my %ret = (
|
||||||
'Data1' => 'Data for PARAMS', #Example
|
'Data1' => 'Data for PARAMS', #Example
|
||||||
# fields from Inputs in PARAMS $fields['PARAMS']
|
# fields from Inputs in PARAMS $fields['PARAMS']
|
||||||
@ -274,8 +272,6 @@ sub actual_DomainList {
|
|||||||
# #print $element . "\n";
|
# #print $element . "\n";
|
||||||
# push @list, $element;
|
# push @list, $element;
|
||||||
# }
|
# }
|
||||||
my $ddb = esmith::DomainsDB->open() || die("Couldn't open Domains db");
|
|
||||||
my $hdb = esmith::HostsDB->open() || die("Couldn't open Hosts db");
|
|
||||||
my @data = ();
|
my @data = ();
|
||||||
my $check = $c->l('Check Domain');
|
my $check = $c->l('Check Domain');
|
||||||
|
|
||||||
@ -444,7 +440,6 @@ sub perform_PARAMS {
|
|||||||
my $c = shift;
|
my $c = shift;
|
||||||
my $prefix_data = shift; #Data hash as parameter
|
my $prefix_data = shift; #Data hash as parameter
|
||||||
my $ret = "";
|
my $ret = "";
|
||||||
my $cdb = esmith::ConfigDB->open() || die("Couldn't open config db");
|
|
||||||
my $db = $cdb; #maybe one of the others
|
my $db = $cdb; #maybe one of the others
|
||||||
my $dbkey = 'letsencrypt';
|
my $dbkey = 'letsencrypt';
|
||||||
|
|
||||||
@ -485,7 +480,6 @@ sub perform_CHECKALLDOMAINS {
|
|||||||
my $c = shift;
|
my $c = shift;
|
||||||
my $prefix_data = shift; #Data hash as parameter
|
my $prefix_data = shift; #Data hash as parameter
|
||||||
my $ret = "";
|
my $ret = "";
|
||||||
my $cdb = esmith::ConfigDB->open() || die("Couldn't open config db");
|
|
||||||
my $db = $cdb; #maybe one of the others
|
my $db = $cdb; #maybe one of the others
|
||||||
my $dbkey = 'ChangeThis';
|
my $dbkey = 'ChangeThis';
|
||||||
|
|
||||||
@ -502,7 +496,6 @@ sub perform_CHECKALLENABLEDDOMAINS {
|
|||||||
my $c = shift;
|
my $c = shift;
|
||||||
my $prefix_data = shift; #Data hash as parameter
|
my $prefix_data = shift; #Data hash as parameter
|
||||||
my $ret = "";
|
my $ret = "";
|
||||||
my $cdb = esmith::ConfigDB->open() || die("Couldn't open config db");
|
|
||||||
my $db = $cdb; #maybe one of the others
|
my $db = $cdb; #maybe one of the others
|
||||||
my $dbkey = 'ChangeThis';
|
my $dbkey = 'ChangeThis';
|
||||||
|
|
||||||
@ -553,7 +546,6 @@ sub get_my_ip {
|
|||||||
|
|
||||||
sub update_one_domain {
|
sub update_one_domain {
|
||||||
my ($self, $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));
|
return "$domain not domain" unless ($ddb->get($domain) || $hdb->get($domain));
|
||||||
($domain) = ($domain =~ /([\w\p{L}.]+)/);
|
($domain) = ($domain =~ /([\w\p{L}.]+)/);
|
||||||
my $output = `/etc/e-smith/events/actions/letsencrypt-setdomains " " $domain `;
|
my $output = `/etc/e-smith/events/actions/letsencrypt-setdomains " " $domain `;
|
||||||
|
@ -27,9 +27,8 @@
|
|||||||
<p><span class=label>
|
<p><span class=label>
|
||||||
%=l('lets_SERVICE_STATUS')
|
%=l('lets_SERVICE_STATUS')
|
||||||
</span><span class=data>
|
</span><span class=data>
|
||||||
%# my @status_options = [['Disabled' => 'disabled'], ['Enabled' => 'enabled'], ['TEST' => 'test']];
|
% my @status_options = [['Disabled' => 'disabled'], ['Enabled' => 'enabled'], ['TEST' => 'test']];
|
||||||
% my @status_options = selected_field([['Disabled' => 'disabled'], ['Enabled' => 'enabled'], ['TEST' => 'test']], $lets_data->{status});
|
% param 'status' => $lets_data->{status} unless param 'status';
|
||||||
%# param 'status' => $lets_data->{status} unless param 'status';
|
|
||||||
%= select_field 'status' => @status_options, class => 'input'
|
%= select_field 'status' => @status_options, class => 'input'
|
||||||
<br></span> </p>
|
<br></span> </p>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
%define name smeserver-certificates
|
%define name smeserver-certificates
|
||||||
%define version 11.0
|
%define version 11.0
|
||||||
%define release 4
|
%define release 2
|
||||||
Summary: This is what smeserver-certificates does.
|
Summary: This is what smeserver-certificates does.
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
@ -25,13 +25,6 @@ AutoReqProv: no
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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]
|
|
||||||
|
|
||||||
* Wed Feb 12 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0-2.sme
|
* Wed Feb 12 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0-2.sme
|
||||||
- move smanager panel in package [SME: 12916]
|
- move smanager panel in package [SME: 12916]
|
||||||
- add Requires
|
- add Requires
|
||||||
|
Loading…
x
Reference in New Issue
Block a user