mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
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:
@@ -327,7 +327,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'save'}) {
|
|||||||
unless (%idsrules) {
|
unless (%idsrules) {
|
||||||
# Check if the red device is active.
|
# Check if the red device is active.
|
||||||
unless (-e "${General::swroot}/red/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.
|
# 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'}) {
|
} elsif ($cgiparams{'RULESET'} eq $Lang::tr{'update ruleset'}) {
|
||||||
# Check if the red device is active.
|
# Check if the red device is active.
|
||||||
unless (-e "${General::swroot}/red/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.
|
# Check if enought free disk space is availabe.
|
||||||
|
|||||||
@@ -2263,6 +2263,7 @@
|
|||||||
'system has hwrng' => 'This system has a hardware random number generator.',
|
'system has hwrng' => 'This system has a hardware random number generator.',
|
||||||
'system has rdrand' => 'This system has support for Intel(R) RDRAND.',
|
'system has rdrand' => 'This system has support for Intel(R) RDRAND.',
|
||||||
'system information' => 'System Information',
|
'system information' => 'System Information',
|
||||||
|
'system is offline' => 'The system is offline.',
|
||||||
'system log viewer' => 'System Log Viewer',
|
'system log viewer' => 'System Log Viewer',
|
||||||
'system logs' => 'System Logs',
|
'system logs' => 'System Logs',
|
||||||
'system status information' => 'System Status Information',
|
'system status information' => 'System Status Information',
|
||||||
|
|||||||
Reference in New Issue
Block a user