Do not use @localstatedir@ for $cachedir.

@localstatedir@ is usually /usr/local/var which unless explicitly overriden,
will depend on @prefix@.
This commit is contained in:
Bruno Victal 2023-02-06 15:21:36 +00:00
parent 9fccfde9e5
commit 102ec07147

View file

@ -49,7 +49,7 @@ sub subst_var {
}
my $etc = subst_var('@sysconfdir@', '/etc/ddclient');
my $cachedir = subst_var('@localstatedir@', '/var') . '/cache/ddclient';
my $cachedir = '/var/cache/ddclient';
my $savedir = '/tmp';
if ($program =~ /test/i) {
$etc = '.';