mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
configdb - bugfix: filemove not working after last changes
git-svn-id: https://svn.fhem.de/fhem/trunk@5843 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0b63c66db4
commit
61ac126ccd
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- bugfix: configdb filemove not working after previous changes
|
||||
- change: IMPORTANT CHANGES TO configDB!
|
||||
changed: all files will be imported as binary
|
||||
changed: all existing textfiles will be moved to binary
|
||||
|
@ -261,7 +261,8 @@ sub CommandConfigdb($$) {
|
||||
$filename .= "/$param1";
|
||||
}
|
||||
if ( -r $filename ) {
|
||||
$ret = _cfgDB_Fileimport ($filename,1);
|
||||
my $filesize = -s $filename;
|
||||
$ret = _cfgDB_binFileimport ($filename,$filesize,1);
|
||||
$ret .= "\nFile $filename deleted from local filesystem.";
|
||||
} elsif ( -e $filename) {
|
||||
$ret = "\n Read error on file $filename";
|
||||
|
Loading…
Reference in New Issue
Block a user