BUG10797: Fix addontable in services.cgi when using squid-accounting addon
authorAlexander Marx <alexander.marx@ipfire.org>
Mon, 13 Apr 2015 06:36:00 +0000 (08:36 +0200)
committerAlexander Marx <alexander.marx@ipfire.org>
Mon, 13 Apr 2015 06:36:00 +0000 (08:36 +0200)
When squid-accounting addon is installed, it shows up under services.cgi
as "squid" service which is wrong.

html/cgi-bin/services.cgi

index 6bfa5bb..76bd9ed 100644 (file)
@@ -188,6 +188,9 @@ END
                        # mdadm should not stopped with webif because this could crash the system
                        #
                        chomp($_);
+                       if ( $_ eq 'squid' ) {
+                               next;
+                       }
                        if ( ($_ ne "alsa") && ($_ ne "mdadm") ) {
                                $lines++;
                                if ($lines % 2){