mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 07:56:03 +00:00
PRESENCE: fixing wrong string operator
git-svn-id: https://svn.fhem.de/fhem/trunk@4619 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
146d185b64
commit
b07d0963c5
@ -91,7 +91,7 @@ PRESENCE_Define($$)
|
||||
return $msg;
|
||||
}
|
||||
|
||||
unless($username == "root")
|
||||
unless($username eq "root")
|
||||
{
|
||||
my $msg = "FHEM is not running under root (currently $username) This check can only performed with root access to the FritzBox";
|
||||
Log 2, "PRESENCE: ".$msg;
|
||||
@ -106,7 +106,7 @@ PRESENCE_Define($$)
|
||||
}
|
||||
elsif($a[2] eq "lan-ping")
|
||||
{
|
||||
if(-X "/usr/bin/ctrlmgr_ctl" and not $username == "root")
|
||||
if(-X "/usr/bin/ctrlmgr_ctl" and not $username eq "root")
|
||||
{
|
||||
my $msg = "FHEM is not running under root (currently $username) This check can only performed with root access to the FritzBox";
|
||||
Log 2, "PRESENCE: ".$msg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user