From d61684e22f462d6bd1b475dcfca443315e1996d8 Mon Sep 17 00:00:00 2001 From: wimpunk Date: Sat, 2 Dec 2006 14:16:42 +0000 Subject: [PATCH] Applied cachedir.diff: Original ddclient stores a cache file in /etc which would belong in /var/cache in my opinion and according to the FHS. Patch changes that. (submitted by Torsten) git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk/svn@33 3873ddee-7413-0410-b6c4-c2c57c1ab35a --- ddclient | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ddclient b/ddclient index 075cf0f..caaf011 100755 --- a/ddclient +++ b/ddclient @@ -22,6 +22,7 @@ $program =~ s/d$//; my $now = time; my $hostname = hostname(); my $etc = ($program =~ /test/i) ? './' : '/etc/ddclient/'; +my $cachedir = ($program =~ /test/i) ? './' : '/var/cache/ddclient/'; my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/'; my $msgs = ''; my $last_msgs = ''; @@ -296,7 +297,7 @@ my %variables = ( 'global-defaults' => { 'daemon' => setv(T_DELAY, 0, 0, 1, 0, interval('60s')), 'file' => setv(T_FILE, 0, 0, 1, "$etc$program.conf", undef), - 'cache' => setv(T_FILE, 0, 0, 1, "$etc$program.cache", undef), + 'cache' => setv(T_FILE, 0, 0, 1, "$cachedir$program.cache", undef), 'pid' => setv(T_FILE, 0, 0, 1, "", undef), 'proxy' => setv(T_FQDNP, 0, 0, 1, '', undef), 'protocol' => setv(T_PROTO, 0, 0, 1, 'dyndns2', undef),