configDB.pm: add modpath for first run with empty database

git-svn-id: https://svn.fhem.de/fhem/trunk@19513 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2019-06-01 07:46:50 +00:00
parent 3f1cb11dec
commit 7d799342e2

View File

@@ -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')");