From 013274d7d88653e5eaf22156754f0bb8c2e3ebaa Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Wed, 30 Jan 2019 10:05:14 +0100 Subject: [PATCH] ids.cgi: Diplay reason, why a ruleset could not be downloaded, if the system is offline. Signed-off-by: Stefan Schantl --- html/cgi-bin/ids.cgi | 4 ++-- langs/en/cgi-bin/en.pl | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 534aba8964..c32df7e78b 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -327,7 +327,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'save'}) { unless (%idsrules) { # Check if the red device is active. unless (-e "${General::swroot}/red/active") { - $errormessage = $Lang::tr{'could not download latest updates'}; + $errormessage = "$Lang::tr{'could not download latest updates'} - $Lang::tr{'system is offline'}"; } # Check if enought free disk space is availabe. @@ -477,7 +477,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'save'}) { } elsif ($cgiparams{'RULESET'} eq $Lang::tr{'update ruleset'}) { # Check if the red device is active. unless (-e "${General::swroot}/red/active") { - $errormessage = $Lang::tr{'could not download latest updates'}; + $errormessage = "$Lang::tr{'could not download latest updates'} - $Lang::tr{'system is offline'}"; } # Check if enought free disk space is availabe. diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index 96dff81677..5a7d3af03d 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -2263,6 +2263,7 @@ 'system has hwrng' => 'This system has a hardware random number generator.', 'system has rdrand' => 'This system has support for Intel(R) RDRAND.', 'system information' => 'System Information', +'system is offline' => 'The system is offline.', 'system log viewer' => 'System Log Viewer', 'system logs' => 'System Logs', 'system status information' => 'System Status Information', -- 2.39.2