ids.cgi: Diplay reason, why a ruleset could not be downloaded, if the system is offline.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2019-01-30 10:05:14 +01:00
parent 5fd2e9d64a
commit 013274d7d8
2 changed files with 3 additions and 2 deletions

View File

@@ -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.

View File

@@ -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',