mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 07:56:03 +00:00
configdb: use modpath
git-svn-id: https://svn.fhem.de/fhem/trunk@11495 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
12aa7c71ef
commit
bdf8d639e0
@ -63,7 +63,8 @@ sub CommandConfigdb($$) {
|
|||||||
|
|
||||||
if ($dbtype eq 'SQLITE') {
|
if ($dbtype eq 'SQLITE') {
|
||||||
my $ts = strftime('%Y-%m-%d_%H-%M-%S',localtime);
|
my $ts = strftime('%Y-%m-%d_%H-%M-%S',localtime);
|
||||||
my $target = AttrVal('global','modpath','.')."/log/configDB_$ts.dump.gz";
|
my $mp = AttrVal('global','modpath','.');
|
||||||
|
my $target = "$mp/log/configDB_$ts.dump.gz";
|
||||||
Log3('configdb', 4, "configdb: target for database dump: $target");
|
Log3('configdb', 4, "configdb: target for database dump: $target");
|
||||||
my $ret = qx(echo '.dump' | sqlite3 /opt/fhem/configDB.db | gzip -c > $target);
|
my $ret = qx(echo '.dump' | sqlite3 /opt/fhem/configDB.db | gzip -c > $target);
|
||||||
return $ret if $ret; # return error message if available
|
return $ret if $ret; # return error message if available
|
||||||
|
Loading…
x
Reference in New Issue
Block a user