/[smecontribs]/rpms/smeserver-certificate/contribs10/smeserver-certificate-0.0.4-Eliminate-Error-msg-on-blank-save.patch
ViewVC logotype

Annotation of /rpms/smeserver-certificate/contribs10/smeserver-certificate-0.0.4-Eliminate-Error-msg-on-blank-save.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Mar 29 08:54:06 2022 UTC (2 years, 8 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-certificate-0_0_4-15_el7_sme, smeserver-certificate-0_0_4-13_el7_sme, smeserver-certificate-0_0_4-14_el7_sme, smeserver-certificate-0_0_4-11_el7_sme, smeserver-certificate-0_0_4-12_el7_sme, smeserver-certificate-0_0_4-10_el7_sme, smeserver-certificate-0_0_4-9_el7_sme, smeserver-certificate-0_0_4-8_el7_sme, HEAD
* Tue Mar 29 2022 Brian Read <brianr@bjsystems.co.uk> 0.0.4-8.sme
- Eliminate-Error-msg-on-blank-save [SME: 11604]

1 brianr 1.1 diff -urN smeserver-certificate-0.0.4.old/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/certificate smeserver-certificate-0.0.4/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/certificate
2     --- smeserver-certificate-0.0.4.old/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/certificate 2022-03-29 09:05:33.234160837 +0100
3     +++ smeserver-certificate-0.0.4/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/certificate 2022-03-29 09:25:55.018379093 +0100
4     @@ -54,5 +54,16 @@
5     <base>LABEL_CERTIFICATE_CHAINFILE</base>
6     <trans>SSL intermediate chain certificate</trans>
7     </entry>
8     +
9     + <entry>
10     + <base>SUCCESS-CERT-WRITTEN</base>
11     + <trans>Success - New Certificate details written</trans>
12     + </entry>
13     +
14     + <entry>
15     + <base>SUCCESS-CERT-DEFAULTED</base>
16     + <trans>Success - Certificate reverted to self-signed</trans>
17     + </entry>
18     +
19     </lexicon>
20    
21     diff -urN smeserver-certificate-0.0.4.old/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/certificate.pm smeserver-certificate-0.0.4/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/certificate.pm
22     --- smeserver-certificate-0.0.4.old/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/certificate.pm 2022-03-29 09:05:33.252161018 +0100
23     +++ smeserver-certificate-0.0.4/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/certificate.pm 2022-03-29 09:24:47.831709075 +0100
24     @@ -52,7 +52,7 @@
25     $pem = "chain.pem";
26     }
27     if (! open (PEM, "<$dir/$pem")){
28     - $fm->error('ERROR_OPEN_PEM','FIRST');
29     + #$fm->error('ERROR_OPEN_PEM','FIRST');
30     # Tell the user something bad has happened
31     return;
32     }
33     @@ -104,12 +104,14 @@
34     system("/bin/rm $ssl_key/$domain.key");
35     system("/bin/rm $ssl_crt/chain.pem");
36     }
37     + $fm->success('SUCCESS-CERT-DEFAULTED','FIRST');
38     +
39     }
40    
41     elsif (($domain_crt ne '') && ($domain_key ne ''))
42     {
43     if (! open (CRT, ">$ssl_crt/$domain.crt")){
44     - $fm->error('ERROR_OPEN_CRT','FIRST');
45     + $fm->error('ERROR_OPEN_KEY','FIRST');
46     # Tell the user something bad has happened
47     return;
48     }
49     @@ -156,8 +158,8 @@
50    
51     system("/sbin/e-smith/signal-event ssl-update");
52    
53     - #$fm->success('SUCCESS','FIRST');
54     - return undef;
55     + $fm->success('SUCCESS-CERT-WRITTEN','FIRST');
56     + #return undef;
57     }
58     }
59     1;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed