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
This commit is contained in:
parent
a8f27939eb
commit
d61684e22f
1 changed files with 2 additions and 1 deletions
3
ddclient
3
ddclient
|
@ -22,6 +22,7 @@ $program =~ s/d$//;
|
||||||
my $now = time;
|
my $now = time;
|
||||||
my $hostname = hostname();
|
my $hostname = hostname();
|
||||||
my $etc = ($program =~ /test/i) ? './' : '/etc/ddclient/';
|
my $etc = ($program =~ /test/i) ? './' : '/etc/ddclient/';
|
||||||
|
my $cachedir = ($program =~ /test/i) ? './' : '/var/cache/ddclient/';
|
||||||
my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/';
|
my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/';
|
||||||
my $msgs = '';
|
my $msgs = '';
|
||||||
my $last_msgs = '';
|
my $last_msgs = '';
|
||||||
|
@ -296,7 +297,7 @@ my %variables = (
|
||||||
'global-defaults' => {
|
'global-defaults' => {
|
||||||
'daemon' => setv(T_DELAY, 0, 0, 1, 0, interval('60s')),
|
'daemon' => setv(T_DELAY, 0, 0, 1, 0, interval('60s')),
|
||||||
'file' => setv(T_FILE, 0, 0, 1, "$etc$program.conf", undef),
|
'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),
|
'pid' => setv(T_FILE, 0, 0, 1, "", undef),
|
||||||
'proxy' => setv(T_FQDNP, 0, 0, 1, '', undef),
|
'proxy' => setv(T_FQDNP, 0, 0, 1, '', undef),
|
||||||
'protocol' => setv(T_PROTO, 0, 0, 1, 'dyndns2', undef),
|
'protocol' => setv(T_PROTO, 0, 0, 1, 'dyndns2', undef),
|
||||||
|
|
Loading…
Reference in a new issue