configDB - added interface to 98_update.pm

git-svn-id: https://svn.fhem.de/fhem/trunk@5642 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2014-04-25 15:53:10 +00:00
parent a3e674d137
commit 602510daf7

View File

@@ -759,6 +759,18 @@ sub _cfgDB_Writefile($$) {
return;
}
sub _cfgDB_Updatefile($) {
my ($filename) = @_;
my $fhem_dbh = _cfgDB_Connect;
my $id = $fhem_dbh->selectrow_array("SELECT filename from fhemfilesave where filename = '$filename'");
$fhem_dbh->disconnect();
if($id) {
_cfgDB_Fileimport($filename,1) if $id;
Log 5, "file $filename updated in configDB";
}
return;
}
# read filelist containing 99_ files in database
sub cfgDB_Read99() {
my $ret;