2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 13:24:56 +00:00

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 a862f1d6e3
commit 5f00c7b5ed

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;