mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 19:36:02 +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:
parent
a862f1d6e3
commit
5f00c7b5ed
@ -759,6 +759,18 @@ sub _cfgDB_Writefile($$) {
|
|||||||
return;
|
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
|
# read filelist containing 99_ files in database
|
||||||
sub cfgDB_Read99() {
|
sub cfgDB_Read99() {
|
||||||
my $ret;
|
my $ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user