Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch fix 4 dmotd / check-for-updates bugs in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, May 20, 2026.

  1. eva2000

    eva2000 Administrator Staff Member

    58,892
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:41 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    fix 4 dmotd / check-for-updates bugs in 140.00beta01

    Bundle of four small but real bug fixes verified by multi-AI consult
    against dmotd.sh and the parallel check-for-updates.sh.

    7a — Pushover centminmod-update title was missing the branch name.
    The bare $branchname at dmotd.sh:741 is unset in the dmotd shell
    environment (branchname is defined in centmin.sh:30 but never
    sourced into dmotd's env). Replace with ${_local_branch:-unknown},
    the value already computed at dmotd.sh:716 via git rev-parse.

    7b — Outdated-branch allowlist at dmotd.sh:275 was missing
    140.00beta01, so users one major release behind got no "newer
    branch available" nudge. The warning text already offers both
    "132.00stable or 141.00beta01" as upgrade targets, covering both
    EL7-9 (stable) and EL10 (current beta) paths.


    7c — dos2unix calls on custom_config.inc were unguarded — the
    pushover.ini variant immediately below correctly guards with
    [ -f /usr/bin/dos2unix ]. Hosts missing dos2unix would print a
    "command not found" error on every dmotd-triggered login (and
    every tools/check-for-updates.sh run). Added the existence check
    to match the safer pattern in both files.

    7d — DMOTD_PHPCHECK_DEBUG branch in get_latest_php_version()
    assigned TEST_PHPVERS but the unconditional echo "$LATEST_PHPVERS"
    below always read LATEST_PHPVERS — so debug mode silently broke
    PHP update detection. Also, the trailing | tee captured nothing
    useful: bash -x writes its trace to stderr, the pipe reads
    stdout. Fixed both: assign to LATEST_PHPVERS, redirect bash -x
    stderr (2>) directly to the debug log file. Applies to both
    config/motd/dmotd.sh and tools/check-for-updates.sh.

    Continue reading...

    140.00beta01 branch