fhem.pl: SecurityCheck call reordering
git-svn-id: https://svn.fhem.de/fhem/trunk@15680 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
24
fhem/fhem.pl
24
fhem/fhem.pl
@@ -558,16 +558,6 @@ if(configDBUsed()) {
|
||||
}
|
||||
}
|
||||
|
||||
if($cfgRet) {
|
||||
$attr{global}{autosave} = 0;
|
||||
$attr{global}{motd} = "$cfgErrMsg\n$cfgRet\nAutosave deactivated";
|
||||
Log 1, $cfgRet;
|
||||
|
||||
} elsif($attr{global}{motd} && $attr{global}{motd} =~ m/^$cfgErrMsg/) {
|
||||
$attr{global}{motd} = "";
|
||||
|
||||
}
|
||||
|
||||
my $pfn = $attr{global}{pidfilename};
|
||||
if($pfn) {
|
||||
die "$pfn: $!\n" if(!open(PID, ">$pfn"));
|
||||
@@ -590,7 +580,19 @@ foreach my $d (keys %defs) {
|
||||
}
|
||||
}
|
||||
|
||||
SecurityCheck();
|
||||
if($cfgRet) {
|
||||
$attr{global}{autosave} = 0;
|
||||
$attr{global}{motd} = "$cfgErrMsg\n$cfgRet\nAutosave deactivated";
|
||||
Log 1, $cfgRet;
|
||||
|
||||
} elsif($attr{global}{motd} && $attr{global}{motd} =~ m/^$cfgErrMsg/) {
|
||||
$attr{global}{motd} = "";
|
||||
|
||||
} else {
|
||||
SecurityCheck();
|
||||
|
||||
}
|
||||
|
||||
|
||||
$fhem_started = time;
|
||||
DoTrigger("global", "INITIALIZED", 1);
|
||||
|
||||
Reference in New Issue
Block a user