mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 20:42:58 +02:00
update-ids-ruleset: Improve error reporting if the system is offline
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user