]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
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 6bfa5bbbe81a5607b91deb6991a70b0ee055e72c..76bd9edebc048213fe2040ae0bba11267ef8fefb 100644 (file)
@@ -188,6 +188,9 @@ END
                        # mdadm should not stopped with webif because this could crash the system
                        #
                        chomp($_);
                        # 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){
                        if ( ($_ ne "alsa") && ($_ ne "mdadm") ) {
                                $lines++;
                                if ($lines % 2){