mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
30_tradfri.pm, 39_alexa.pm: fixed ssh user
git-svn-id: https://svn.fhem.de/fhem/trunk@18580 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8ba8f74f65
commit
511561518d
@ -370,7 +370,7 @@ tradfri_getCmd($) {
|
||||
if( my $host = AttrVal($name, 'tradfriFHEM-sshHost', undef ) ) {
|
||||
my $ssh = qx( which ssh ); chomp( $ssh );
|
||||
if( my $user = AttrVal($name, 'tradfriFHEM-sshUser', undef ) ) {
|
||||
$ssh_cmd = "$ssh $host -u $user";
|
||||
$ssh_cmd = "$ssh $user\@$host";
|
||||
} else {
|
||||
$ssh_cmd = "$ssh $host";
|
||||
}
|
||||
|
@ -440,7 +440,7 @@ alexa_getCMD($)
|
||||
if( my $host = AttrVal($name, 'alexaFHEM-host', undef ) ) {
|
||||
my $ssh = qx( which ssh ); chomp( $ssh );
|
||||
if( my $user = AttrVal($name, 'alexaFHEM-sshUser', undef ) ) {
|
||||
$ssh_cmd = "$ssh $host -u $user";
|
||||
$ssh_cmd = "$ssh $user\@$host";
|
||||
} else {
|
||||
$ssh_cmd = "$ssh $host";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user