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@33 3873ddee-7413-0410-b6c4-c2c57c1ab35a
This commit is contained in:
parent
e9cdb27f95
commit
9383adf9d9
1 changed files with 2 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue