[Koha-bugs] [Bug 34419] New: koha-plack contains a wrong test about missing Apache modules

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jul 26 17:03:08 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34419

            Bug ID: 34419
           Summary: koha-plack contains a wrong test about missing Apache
                    modules
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: m.de.rooy at rijksmuseum.nl
        QA Contact: testopia at bugs.koha-community.org

All needed Apache modules are installed but koha-plack tells me:

WARNING: koha-plack requires some Apache modules that you are missing.
You can install them with:
    sudo a2enmod headers proxy_http

This really is not true.
What happened?
There is a syntax error in one of my local sed changes in a config file.

Looking a bit deeper, I see this test in sub check_env_and_warn()

        if ! /usr/sbin/apachectl -M 2> /dev/null | grep -q ${module}; then
            missing_modules="${missing_modules}${module} "
        fi

Altough the grep -q part looked mysterious to me at first, the problem seems to
be the pipe. If the first process exits with an error, the second will have an
error too on the closed handles.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list