bee57ea19d
use /etc instead of /etc/ddclient(bnc#781699) OBS-URL: https://build.opensuse.org/request/show/135797 OBS-URL: https://build.opensuse.org/package/show/network/ddclient?expand=0&rev=19
55 lines
2.2 KiB
Diff
55 lines
2.2 KiB
Diff
Index: sample-etc_ddclient.conf
|
|
===================================================================
|
|
--- sample-etc_ddclient.conf.orig
|
|
+++ sample-etc_ddclient.conf
|
|
@@ -18,12 +18,16 @@
|
|
## are mentioned here.
|
|
##
|
|
######################################################################
|
|
+# daemon: consider to use /etc/sysconfig/ddclient instead of modifying here
|
|
+#
|
|
daemon=300 # check every 300 seconds
|
|
+#
|
|
+######################################################################
|
|
syslog=yes # log update msgs to syslog
|
|
-mail=root # mail all msgs to root
|
|
+#mail=root # mail all msgs to root
|
|
mail-failure=root # mail failed update msgs to root
|
|
pid=/var/run/ddclient.pid # record PID in file.
|
|
-ssl=yes # use ssl-support. Works with
|
|
+ssl=no # use ssl-support. Works with
|
|
# ssl-library
|
|
# postscript=script # run script after updating. The
|
|
# new IP is added as argument.
|
|
@@ -56,10 +60,17 @@ ssl=yes # use ssl-support. Works wi
|
|
## get banned from their service.
|
|
#use=web, web=checkip.dyndns.org/, web-skip='IP Address' # found after IP Address
|
|
#
|
|
+######################################################################
|
|
+# you do not need to define use= if you are using DSL (ppp0)
|
|
+# rc.ddclient is using "use=if, if=ppp0" as default
|
|
+#
|
|
#use=ip, ip=127.0.0.1 # via static IP's
|
|
#use=if, if=eth0 # via interfaces
|
|
+#use=if, if=ippp0 # when using ISDN
|
|
+#use=if, if=ppp0 # when using DSL
|
|
#use=web # via web
|
|
#
|
|
+######################################################################
|
|
#protocol=dyndns2 # default protocol
|
|
#proxy=fasthttp.sympatico.ca:80 # default proxy
|
|
#server=members.dyndns.org # default server
|
|
Index: ddclient
|
|
===================================================================
|
|
--- ddclient.orig
|
|
+++ ddclient
|
|
@@ -29,7 +29,7 @@ my $program = $programd;
|
|
$program =~ s/d$//;
|
|
my $now = time;
|
|
my $hostname = hostname();
|
|
-my $etc = ($program =~ /test/i) ? './' : '/etc/ddclient/';
|
|
+my $etc = ($program =~ /test/i) ? './' : '/etc/';
|
|
my $cachedir = ($program =~ /test/i) ? './' : '/var/cache/ddclient/';
|
|
my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/';
|
|
my $msgs = '';
|