]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.cgi: Diplay reason, why a ruleset could not be downloaded, if the system is offline.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 30 Jan 2019 09:05:14 +0000 (10:05 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 30 Jan 2019 09:05:14 +0000 (10:05 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi
langs/en/cgi-bin/en.pl

index 534aba8964c110f92e623d03788e759cc5dbb860..c32df7e78bd41674da20cbff81b0d83132eb9936 100644 (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.
index 96dff81677e94d6cd9cbbe72baf517d52821ce43..5a7d3af03df721032f4c75c72e0034e1b0a07073 100644 (file)
 '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',