mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
98_backup.pm: fix %L for statefile (Forum #89809)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@17053 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fc73a86f5d
commit
0df785c44e
@ -52,6 +52,9 @@ CommandBackup($$)
|
||||
my $modpath = AttrVal("global", "modpath","");
|
||||
my $configfile = AttrVal("global", "configfile", "");
|
||||
my $statefile = AttrVal("global", "statefile", "");
|
||||
my $now = gettimeofday();
|
||||
my @t = localtime($now);
|
||||
$statefile = ResolveDateWildcards($statefile, @t);
|
||||
|
||||
# prevent duplicate entries in backup list for default config, forum #54826
|
||||
$configfile = '' if ($configfile eq 'fhem.cfg' || configDBUsed());
|
||||
|
Loading…
x
Reference in New Issue
Block a user