1 |
diff -urN smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers smeserver-ddclient-1.3.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers |
2 |
--- smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers 2020-06-28 09:57:47.000000000 +0100 |
3 |
+++ smeserver-ddclient-1.3.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers 2022-02-20 11:17:55.000000000 +0000 |
4 |
@@ -3,12 +3,27 @@ |
5 |
my $ssl = ${ddclient}{SSL} || 'yes'; |
6 |
$OUT .= qq( |
7 |
daemon=$deamonupdate # check every $deamonupdate seconds |
8 |
-syslog=yes # log update msgs to syslog |
9 |
-mail=admin # mail update msgs to admin |
10 |
-mail-failure=admin |
11 |
+syslog=yes # log update msgs to syslog |
12 |
pid=/var/run/ddclient.pid # record PID in file. |
13 |
-ssl=$ssl |
14 |
-#); |
15 |
+ssl=$ssl # Set SSL |
16 |
+); |
17 |
+ |
18 |
+ |
19 |
+ my $mailSuccess = $ddclient{'mailSuccess'}||'admin'; |
20 |
+ |
21 |
+ if (($mailSuccess eq 'none') || ($mailSuccess eq '' )) { |
22 |
+ $mailSuccess = ""; |
23 |
+ } |
24 |
+ |
25 |
+ my $mailFailure = $ddclient{'mailFailure'}||'admin'; |
26 |
+ |
27 |
+ if (($mailFailure eq 'none') || ($mailFailure eq '')) { |
28 |
+ $mailFailure = ""; |
29 |
+ } |
30 |
+ |
31 |
+ $OUT .= "\n"; |
32 |
+ $OUT .= "mail=$mailSuccess\n"; # mail update msgs to admin |
33 |
+ $OUT .= "mail-failure=$mailFailure\n"; |
34 |
|
35 |
my $method = $ddclient{'method'}||'web'; |
36 |
my $webskip = $ddclient{'webskip'}||'IP Address:'; |