diff --git a/core/lib/Foswiki/Configure/Checkers/AuthScripts.pm b/core/lib/Foswiki/Configure/Checkers/AuthScripts.pm index 68ed648773..cf6f8a2690 100755 --- a/core/lib/Foswiki/Configure/Checkers/AuthScripts.pm +++ b/core/lib/Foswiki/Configure/Checkers/AuthScripts.pm @@ -11,6 +11,10 @@ sub check_current_value { my ( $this, $reporter ) = @_; my $msg = ''; + my $notCLI = + ( defined $Foswiki::cfg{Engine} + && substr( $Foswiki::cfg{Engine}, -3 ) ne 'CLI' ); + my $templateLogin = eval { $Foswiki::cfg{LoginManager} ->isa('Foswiki::LoginManager::TemplateLogin'); @@ -25,14 +29,16 @@ other than 'none' or clear this setting. EOF } - unless ($templateLogin) { - $reporter->WARN(<<'EOF'); + if ($notCLI) { + unless ($templateLogin) { + $reporter->WARN(<<'EOF'); You have specified an alternative (non-TemplateLogin) login manager. It is critical that this list of scripts be consistent with the scripts protected by the Web Server. For example, if you are using Apache then verify that this setting is consistent with the =FilesMatch= or =LocationMatch= directive that requires a valid user for the scripts. EOF + } } unless ( $Foswiki::cfg{AuthScripts} =~ m/statistics/ ) { diff --git a/core/lib/Foswiki/Configure/Checkers/TempfileDir.pm b/core/lib/Foswiki/Configure/Checkers/TempfileDir.pm index 5ba1e24b6f..a06bace62a 100755 --- a/core/lib/Foswiki/Configure/Checkers/TempfileDir.pm +++ b/core/lib/Foswiki/Configure/Checkers/TempfileDir.pm @@ -18,7 +18,7 @@ sub check_current_value { File::Spec->tmpdir() =~ m/^(.*)$/; $tmpdir = $1; # untaint - $reporter->WARN( '{TempfileDir} is not set (or is set to nothing).' + $reporter->NOTE( '{TempfileDir} is not set (or is set to nothing).' . " Temporary files will be written to: =$tmpdir=" ); $reporter->NOTE("Other possible alternatives:");