mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
configDB.pm: add modpath for first run with empty database
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@19513 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ffd32dc03d
commit
eaba954d53
@ -307,6 +307,7 @@ sub cfgDB_Init() {
|
||||
my $count = $fhem_dbh->selectrow_array('SELECT count(*) FROM fhemconfig');
|
||||
if($count < 1) {
|
||||
# insert default entries to get fhem running
|
||||
$attr{global}{modpath} = '.';
|
||||
$fhem_dbh->commit();
|
||||
my $uuid = _cfgDB_Uuid;
|
||||
$fhem_dbh->do("INSERT INTO fhemversions values (0, '$uuid')");
|
||||
|
Loading…
x
Reference in New Issue
Block a user