]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - html/cgi-bin/ids.cgi
ids.cgi: Diplay reason, why a ruleset could not be downloaded, if the system is offline.
[ipfire-2.x.git] / html / cgi-bin / ids.cgi
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.