Discover Centmin Mod today
Register Now

Beta Branch fix nginx maintenance mode left on after a failed menu 4 upgrade in 1…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Nov 14, 2026 at 10:54 PM.

  1. eva2000

    eva2000 Administrator Staff Member

    60,407
    12,614
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,273
    Local Time:
    11:51 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    fix nginx maintenance mode left on after a failed menu 4 upgrade in 140.00beta01

    With NGINX_UPDATEMAINTENANCE='y', menu 4 puts all sites into 503
    maintenance mode before the build. Download and build helpers end the
    shell with exit 1 on failure, which skipped the callers'
    nginx_maintenance_off, so a failed upgrade could leave every site in
    maintenance mode. This covered single-job module and OpenSSL downloads
    and LibreSSL, pagespeed, gperftools and OpenResty download failures.

    Changes:
    - nginx_maintenance_on: also set an EXIT trap that runs
    nginx_maintenance_off, so maintenance mode is turned off when a helper
    exits the shell
    - nginx_maintenance_off: clear that EXIT trap when it runs


    Continue reading...

    140.00beta01 branch