Welcome to Centmin Mod Community
Become a Member

Upgrade CMM Remote Branch Changed

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Jimmy, Feb 16, 2017.

  1. Jimmy

    Jimmy Premium Member Premium Member

    1,026
    231
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +555
    Local Time:
    11:30 AM
    1.13.x
    MariaDB 10.1.x
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.11.10
    • PHP Version Installed: 7.1.1
    • MariaDB MySQL Version Installed: 10.1.21
    • When was last time updated Centmin Mod code base ? : today

    I have to identical servers running just centmin mod - no websites. Both servers are using the same hardware. Initial install was 123.09beta01 neither server was ever on the stable branch.

    Got what is below today on one of the servers.

    Kind of curious why I got this on one server, but not the other being that both are identical. Is this something to be worried about? Hacking? Just curious. At this point, neither server has anything on them, just centmin mod.

    Code:
     checking for YUM updates... please wait...
     no YUM updates available
    -------------------------------------------------------------
     Centmin Mod remote branch has changed
     from https://github.com/centminmod/centminmod.git
     to
    -------------------------------------------------------------
     Do you want to update the Centmin Mod Git repo url ? [y/n]: y
    
    setup Centmin Mod git sourced install...
    
    download github.com centmin mod 123.09beta01 branch repo
    time git clone -b 123.09beta01 --depth=1 https://github.com/centminmod/centminmod.git centminmod
    Cloning into 'centminmod'...
    
    real    0m1.450s
    user    0m0.216s
    sys    0m0.099s
    
    list all available local branches
        git branch -a
    * 123.09beta01
      remotes/origin/123.09beta01
    
    list git log last commit
        git log -a
    commit fd717ae7407c4c76038f2f78caa332007105954a
    Author: George Liu <snipped>
    Date:   Wed Feb 15 23:59:07 2017 +1000
    
        Nginx upgrades ensure openssl tarball only downloaded when LIBRESSL_SWITCH='n' set
    
    to update centmin mod 123.09beta01 branch repo via git
        cd /usr/local/src/centminmod
        git stash
        git pull
        chmod +x centmin.sh
    
    ##################### IMPORTANT #####################
     To complete update
    ##################### IMPORTANT #####################
     run:
    
      cd /usr/local/src/centminmod
    
     before invoking centmin.sh again
    ##################### IMPORTANT #####################
    
     
    Last edited by a moderator: Feb 16, 2017
  2. eva2000

    eva2000 Administrator Staff Member

    29,044
    6,590
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,785
    Local Time:
    1:30 AM
    Nginx 1.13.x
    MariaDB 5.5
    nothing to worry

    notice the to address
    Code (Text):
    -------------------------------------------------------------
     Centmin Mod remote branch has changed
     from https://github.com/centminmod/centminmod.git
     to
    

    CURL_GITURL variable is empty
    Code (Text):
    CURL_GITURL=$(curl -s https://raw.githubusercontent.com/centminmod/centminmod/$(awk -F "=" '/branchname=/ {print $2}' ${CMSCRIPT_GITDIR}/centmin.sh | sed -e "s|'||g" )/giturl.txt)
    

    which means probably that github's raw.githubusercontent.com site was temporarily down or inaccessible so triggered the routine

    were both installed via curl one liner or via downloading the zip file/centmin.sh menu option 1 ?
     
    • Informative Informative x 1
  3. Jimmy

    Jimmy Premium Member Premium Member

    1,026
    231
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +555
    Local Time:
    11:30 AM
    1.13.x
    MariaDB 10.1.x
    Both were install via the one liner. Both have auto updates set at the same time. I didn't see anything odd in the logs. Figured I'd post it in-case there was some issue, hacking, etc.
     
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    29,044
    6,590
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,785
    Local Time:
    1:30 AM
    Nginx 1.13.x
    MariaDB 5.5
    Nah not hacking it's a routine to allow centmin mod itself to check the latest official centmin mod git repo url defined at centminmod/giturl.txt at 123.09beta01 · centminmod/centminmod · GitHub

    This would allow me in future if I ever have to change the official git repo url for whatever reason, it can be automatically detected on centmin mod user's server end and auto updated without breaking end user's local updates via centmin.sh menu option 23 :)
     
    • Informative Informative x 1