add fhem hostname to backup file name syntax
This commit is contained in:
@ -424,6 +424,8 @@ sub PushToStorage {
|
||||
|
||||
$subprocess->{curl} = qx(which curl);
|
||||
chomp($subprocess->{curl});
|
||||
$subprocess->{fhemhost} = qx(hostname -f);
|
||||
chomp($subprocess->{fhemhost}
|
||||
$subprocess->{type} = $hash->{STORAGETYPE};
|
||||
$subprocess->{host} = AttrVal( $name, 'bTS_Host', '' );
|
||||
$subprocess->{user} = AttrVal( $name, 'bTS_User', '' );
|
||||
@ -616,7 +618,7 @@ sub ExecuteNCupload {
|
||||
$command .= $subprocess->{user};
|
||||
$command .= $subprocess->{path};
|
||||
$command .= '/';
|
||||
$command .= $subprocess->{fileNameAtStorage};
|
||||
$command .= $subprocess->{fhemhost} . '-' . $subprocess->{fileNameAtStorage};
|
||||
$command .= '"';
|
||||
|
||||
return ExecuteCommand($command);
|
||||
|
Reference in New Issue
Block a user