From 24f5ecedaf020dbc05bb611b68d4344c3b62d7f0 Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Sun, 10 Jul 2016 10:11:28 +0000 Subject: [PATCH] configDB.pm: use %L instead of hardcoded path git-svn-id: https://svn.fhem.de/fhem/trunk@11775 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/configDB.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fhem/configDB.pm b/fhem/configDB.pm index b75c2266e..56ec296ca 100644 --- a/fhem/configDB.pm +++ b/fhem/configDB.pm @@ -265,13 +265,14 @@ sub cfgDB_Init() { my $uuid = _cfgDB_Uuid; $fhem_dbh->do("INSERT INTO fhemversions values (0, '$uuid')"); _cfgDB_InsertLine($fhem_dbh, $uuid, '#created by cfgDB_Init',0); - _cfgDB_InsertLine($fhem_dbh, $uuid, 'attr global logfile ./log/fhem-%Y-%m-%d.log',1); + _cfgDB_InsertLine($fhem_dbh, $uuid, 'attr global logdir ./log',1); + _cfgDB_InsertLine($fhem_dbh, $uuid, 'attr global logfile %L/fhem-%Y-%m-%d.log',1); _cfgDB_InsertLine($fhem_dbh, $uuid, 'attr global modpath .',2); _cfgDB_InsertLine($fhem_dbh, $uuid, 'attr global userattr devStateIcon devStateStyle icon sortby webCmd',3); _cfgDB_InsertLine($fhem_dbh, $uuid, 'attr global verbose 3',4); _cfgDB_InsertLine($fhem_dbh, $uuid, 'define telnetPort telnet 7072 global',5); - _cfgDB_InsertLine($fhem_dbh, $uuid, 'define WEB FHEMWEB 8083 global',6); - _cfgDB_InsertLine($fhem_dbh, $uuid, 'define Logfile FileLog ./log/fhem-%Y-%m-%d.log fakelog',7); + _cfgDB_InsertLine($fhem_dbh, $uuid, 'define web FHEMWEB 8083 global',6); + _cfgDB_InsertLine($fhem_dbh, $uuid, 'define Logfile FileLog %L/fhem-%Y-%m-%d.log fakelog',7); } # create TABLE fhemstate if nonexistent