]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
update-ids-ruleset: Improve error reporting if the system is offline
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 30 Jan 2019 09:57:31 +0000 (10:57 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 30 Jan 2019 09:57:31 +0000 (10:57 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
src/scripts/update-ids-ruleset

index 05d2ea61b3776f71787a5c0725fc4332027c181e..d988d2556684d89cabb1ecd049dd65e558fa105a 100644 (file)
@@ -31,7 +31,7 @@ unless (-e "${General::swroot}/red/active") {
        &IDS::_log_to_syslog("The system is offline.");
 
        # Store error message for displaying in the WUI.
-       &IDS::_store_error_message("$Lang::tr{'could not download latest updates'}");
+       &IDS::_store_error_message("$Lang::tr{'could not download latest updates'} - $Lang::tr{'system is offline'}");
 
        # Exit.
        exit 0;