mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 10:52:57 +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) {
|
||||
# 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.
|
||||
|
||||
Reference in New Issue
Block a user