]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
log.dat: Fixes bug#12950 - adding apcupsd to system logs list
authorAdolf Belka <adolf.belka@ipfire.org>
Tue, 21 Feb 2023 13:55:17 +0000 (14:55 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 4 Mar 2023 14:03:45 +0000 (14:03 +0000)
- Patch tested out on my production system that has apcupsd running on it. APCUPS was
   in the list of options in the system logs and entries from apcupsd were extracted
   correctly in the wui.

Fixes: Bug#12950
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/logs.cgi/log.dat

index 5fb1fcd5db4d4ab359e52e614f2eebccc7bc0651..bf71b3c9f6f9118aec17cadcdb1a96e69b03d021 100644 (file)
@@ -49,6 +49,7 @@ $cgiparams{'ACTION'} = '';
 $cgiparams{'SECTION'} = 'ipfire';
 
 my %sections = (
+        'apcupsd' => '(apcupsd\[.*?\]: )',
         'auth' => '(\w+\(pam_unix\)\[.*\]: )',
         'wio' => '(wio:|wio\[.*\])',
         'captive' => '(Captive:)',
@@ -81,6 +82,7 @@ my %sections = (
 
 # Translations for the %sections array.
 my %trsections = (
+        'apcupsd' => 'APCUPS',
         'auth' => "$Lang::tr{'loginlogout'}",
         'wio' => 'Who Is Online?',
         'captive' => $Lang::tr{'Captive'},