Want to subscribe to topics you're interested in?
Become a Member

Beta Branch New .08 beta menu option - updating Centmin Mod via git

Discussion in 'Beta release code' started by eva2000, May 31, 2015.

  1. eva2000

    eva2000 Administrator Staff Member

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Coming soon I hope - centmin.sh menu option 23 = Update Centmin Mod Code Base (via git) :)

    Based on same git command line method of updating Centmin Mod code outlined at Upgrade - Working with git command line for updating Centmin Mod local copies | Centmin Mod Community

    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.08 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu          
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2, 5.5, 10, 10.1 Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Re-install ImageMagick PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + WP Super Cache
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 23
    --------------------------------------------------------
    
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu     
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 
    submenu option 1 setup github local environment
    Code:
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu     
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 1
    --------------------------------------------------------
    
    setup Centmin Mod git sourced install...
    
    download github.com centmin mod 123.08beta03 branch repo
    Cloning into 'centminmod-123.08beta03'...
    Switched to a new branch '123.08beta03'
    Branch 123.08beta03 set up to track remote branch 123.08beta03 from origin.
    
    list all available local branches
            git branch -a
    * 123.08beta03
      master
      remotes/origin/123.06stable
      remotes/origin/123.07stable
      remotes/origin/123.08beta03
      remotes/origin/123.08centos7beta01
      remotes/origin/123.08centos7beta02
      remotes/origin/123.08livestats
      remotes/origin/123.08lua
      remotes/origin/123.08zerodown
      remotes/origin/HEAD -> origin/master
      remotes/origin/master
    
    list git log last commit
            git log -a
    commit 0a14b23ee0ec2c7787bdfc6befd58d5fb13475dd
    Author: George Liu <EMAIL>
    Date:   Sun May 31 14:40:29 2015 +1000
    
        add tools/gitsetup.sh to automate steps to switch to git updated code base
        https://community.centminmod.com/threads/working-with-git-command-line-for-updating-centmin-mod-local-copies.2150/
    
    to update centmin mod 123.08beta03 branch repo via git
            cd /usr/local/src/centminmod-123.08beta03
            git stash
            git pull
            chmod +x centmin.sh
    if you try submenu option 2 and you haven't done submenu option 1 yet
    Code:
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu     
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 2
    --------------------------------------------------------
    
    Error: you do not have git environment setup for github based updates
           run submenu option 1 to setup github environment first
    switching to a new github branch via submenu option 3
    Code:
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu       
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 3
    --------------------------------------------------------
    
    Update Centmin Mod to newer branch via git
    You need to input the name of the branch
    List of current remote branches by descending date order
    
    2015-05-31 16:54:41 +1000 4 minutes ago 123.08beta03updater
    2015-05-31 14:40:29 +1000 2 hours ago   123.08beta03
    2015-05-29 20:22:39 +1000 2 days ago    master
    2015-05-29 20:22:39 +1000 2 days ago    master
    2015-05-28 21:20:39 +1000 3 days ago    123.08livestats
    2015-05-28 15:29:07 +1000 3 days ago    123.08lua
    2015-05-27 15:54:13 +1000 4 days ago    123.08centos7beta02
    2015-05-17 19:25:36 +1000 2 weeks ago   123.07stable
    2015-05-12 00:44:49 +1000 3 weeks ago   123.08centos7mongodb
    2015-05-08 03:36:57 +1000 3 weeks ago   123.08centos7setmisc
    2015-04-13 12:00:17 +1000 7 weeks ago   123.08centos7beta02wp
    2015-04-07 12:33:43 +1000 8 weeks ago   123.08centos6beta02redis
    2015-04-04 05:50:25 +1000 8 weeks ago   123.07stable-fixes
    2015-03-25 03:45:39 +1000 10 weeks ago  123.08zerodown
    2015-03-10 16:52:48 +1000 3 months ago  123.08geoip
    2015-03-10 16:52:37 +1000 3 months ago  123.08centos7beta01
    2015-02-24 22:19:38 +1000 3 months ago  123.07stable_intel
    2015-02-02 00:51:34 +1000 4 months ago  123.08slowfs
    2014-06-23 17:08:44 +1000 11 months ago 123.06stable
            ->
    
    Code:
    Enter the branch name you want to switch to i.e. 123.08beta03 : 123.08beta03
    
    download github.com centmin mod 123.08beta03 branch repo
    Cloning into 'centminmod-123.08beta03'...
    

    How to Update or Switch Centmin Mod Versions



    Updated: Feb 26th, 2016 with updated screencast example of using centmin.sh menu option 23 submenu option 3 to switch branches and submenu option 2 to update existing branch code locally.

    You need to have run centmin.sh menu option 23 submenu option 1 first and have completely exited centmin.sh after that run and change directory back into /usr/local/src/centminmod to be able to use centmin.sh menu option 23 submenu options 2 and 3.

    [​IMG]

     
    Last edited: Sep 4, 2016
  2. eva2000

    eva2000 Administrator Staff Member

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    All submenu options have accompanying logs saved to /root/centminlogs/ so you can diagnose and troubleshoot issues
    Code:
    ls -lhrt /root/centminlogs/
    total 14M
    -rw-r--r--. 1 root root  17K Apr  3 01:49 centminmod_1.2.3-eva2000.08_030415-114321_yuminstall_centos7.log
    -rw-r--r--. 1 root root  74K Apr  3 01:50 centminmod_yumtimes_030415-114321.log
    -rw-r--r--. 1 root root  29K Apr  3 02:08 centminmod_1.2.3-eva2000.08_030415-114321_yum-log.log
    -rw-r--r--. 1 root root 4.4M Apr  3 02:08 centminmod_1.2.3-eva2000.08_030415-114321_install.log
    -rw-r--r--  1 root root 1.6K Apr  5 06:46 centminmod_1.2.3-eva2000.08_050415-064607_nginx_addvhost.log
    -rw-r--r--  1 root root 968K May 25 00:15 centminmod_1.2.3-eva2000.08_250515-000935_nginx_upgrade.log
    -rw-r--r--  1 root root  47K May 25 01:31 centminmod_1.2.3-eva2000.08_250515-013029_nginx_upgrade.log
    -rw-r--r--  1 root root 952K May 25 01:39 centminmod_1.2.3-eva2000.08_250515-013708_nginx_upgrade.log
    -rw-r--r--  1 root root 957K May 25 02:16 centminmod_1.2.3-eva2000.08_250515-021424_nginx_upgrade.log
    -rw-r--r--  1 root root 961K May 25 02:28 centminmod_1.2.3-eva2000.08_250515-022556_nginx_upgrade.log
    -rw-r--r--  1 root root 475K May 25 02:33 centminmod_1.2.3-eva2000.08_250515-023156_nginx_upgrade.log
    -rw-r--r--  1 root root 956K May 25 02:36 centminmod_1.2.3-eva2000.08_250515-023415_nginx_upgrade.log
    -rw-r--r--  1 root root 2.3K May 25 04:40 centminmod_1.2.3-eva2000.08_250515-043941_nginx_addvhost.log
    -rw-r--r--  1 root root 956K May 26 18:23 centminmod_1.2.3-eva2000.08_260515-181918_nginx_upgrade.log
    -rw-r--r--  1 root root 1.8M May 26 18:28 centminmod_1.2.3-eva2000.08_260515-181918_php_upgrade.log
    -rw-r--r--  1 root root 956K May 28 03:11 centminmod_1.2.3-eva2000.08_280515-030711_nginx_upgrade.log
    -rw-r--r--  1 root root 1.7K May 31 06:51 centminmod_1.2.3-eva2000.08_310515-064828_git_envsetup.log
    -rw-r--r--  1 root root  133 May 31 06:52 centminmod_1.2.3-eva2000.08_310515-064828_git_updatecur_branch.log
    -rw-r--r--  1 root root  133 May 31 06:52 centminmod_1.2.3-eva2000.08_310515-065243_git_updatecur_branch.log
    -rw-r--r--  1 root root  733 May 31 06:56 centminmod_1.2.3-eva2000.08_310515-065600_git_updatecur_branch.log
    -rw-r--r--  1 root root 2.8K May 31 06:59 centminmod_1.2.3-eva2000.08_310515-065849_git_updatenew_branch.log
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    let's play with new menu option 23 to update Centmin Mod .08 beta03 code via git

    menu option 23 -> submenu 1 to setup git environment
    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.08 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu                 
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2, 5.5, 10, 10.1 Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Re-install ImageMagick PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + WP Super Cache
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 23
    --------------------------------------------------------
    
    Code:
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu            
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 1
    --------------------------------------------------------
    
    setup Centmin Mod git sourced install...
    
    download github.com centmin mod 123.08beta03 branch repo
    Initialized empty Git repository in /usr/local/src/centminmod-123.08beta03/.git/
    Switched to a new branch '123.08beta03'
    Branch 123.08beta03 set up to track remote branch 123.08beta03 from origin.
    
    list all available local branches
            git branch -a
    * 123.08beta03
      master
      remotes/origin/123.06stable
      remotes/origin/123.07stable
      remotes/origin/123.08beta03
      remotes/origin/123.08beta03-libresslclang
      remotes/origin/123.08beta03clang
      remotes/origin/123.08beta03libressl
      remotes/origin/123.08centos7beta01
      remotes/origin/123.08centos7beta02
      remotes/origin/123.08zerodown
      remotes/origin/HEAD -> origin/master
      remotes/origin/master
    
    list git log last commit
            git log -a
    commit 44992a33213656d35fa6dbb2495436dd496c35fc
    Author: George Liu <EMAIL>
    Date:   Wed Jun 10 03:01:47 2015 +1000
    
        update inc/nginx_configure.inc ensure clang exists for older centmin mod release updates
    
    to update centmin mod 123.08beta03 branch repo via git
            cd /usr/local/src/centminmod-123.08beta03
            git stash
            git pull
            chmod +x centmin.sh
    menu option 23 -> submenu option 2 to git update code
    Code:
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu            
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 2
    --------------------------------------------------------
    
    Updating Current Centmin Mod code branch via git
            cd /usr/local/src/centminmod-123.08beta03
            git stash
            git pull
            chmod +x centmin.sh
    Saved working directory and index state WIP on 123.08beta03: 44992a3 update inc/nginx_configure.inc ensure clang exists for older centmin mod release updates
    HEAD is now at 44992a3 update inc/nginx_configure.inc ensure clang exists for older centmin mod release updates
    Already up-to-date.
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    another example of using centmin.sh menu option 23 submenu option 2 to update Centmin Mod current branch code

    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.08 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu                  
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2, 5.5, 10, 10.1 Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Re-install ImageMagick PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + WP Super Cache
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 23
    --------------------------------------------------------
    
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu             
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 2
    --------------------------------------------------------
    
    Updating Current Centmin Mod code branch via git
            cd /usr/local/src/centminmod-123.08beta03
            git stash
            git pull
            chmod +x centmin.sh
    Saved working directory and index state WIP on 123.08beta03: 27c4ca2 update centmin.sh & inc/nginx_configure.inc with NGINX_STREAM variable
    HEAD is now at 27c4ca2 update centmin.sh & inc/nginx_configure.inc with NGINX_STREAM variable
    From https://github.com/centminmod/centminmod
       27c4ca2..e833a6f  123.08beta03 -> origin/123.08beta03
    Updating 27c4ca2..e833a6f
    Fast-forward
    centmin.sh              |    3 +++
    inc/nginx_configure.inc |   44 ++++++++++++++++++++++++++++++++++++++++----
    inc/nginx_install.inc   |    2 ++
    inc/nginx_upgrade.inc   |    2 ++
    4 files changed, 47 insertions(+), 4 deletions(-)
     
  5. Mask

    Mask Active Member

    108
    31
    28
    Nov 10, 2014
    Ratings:
    +37
    Local Time:
    4:50 PM
    Nginx 1.9.1
    MariaDB 10.0.19
    Hi George,
    How should I upgrade to the new version?? I believe I am on a bit older version on one install (centminmod-123.08centos7beta02) and option 23 is actually exit option for me.
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You'll need to upgrade using the old method in 1st post at CentOS 7.x - How to help test .08 CentOS 7 Betas with Github code ? | Centmin Mod Community by manually overwriting the files. Then once in .08 beta 03 you can update with the new centmin.sh menu option 23 :)
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    An illustrated example of using centmin.sh menu option 23 to first setup the git environment via submenu option 1. Then exiting centmin.sh and relaunching centmin.sh to use centmin.sh menu option 23 submenu option 2 to check for updates.

    centminmod-gitupdate.gif
     
    Last edited: Nov 24, 2015
  8. quicksalad

    quicksalad Member

    228
    13
    18
    May 31, 2015
    Ratings:
    +20
    Local Time:
    5:20 PM
    am I in a big trouble? I cannot run sub menu option 2. It gives me error below.

    Error: you do not have git environment setup for github based updates
    run submenu option 1 to setup github environment first
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    do as it says, run submenu option 1 first..

    then hit submenu option 4 to go back and then centmin.sh menu option 24 to exit. Then log out and log back into SSH window session to complete the process. From then on, you can use centmin.sh menu option 23 -> submenu option 2 to easily update your local Centmin Mod code itself.
     
  10. quicksalad

    quicksalad Member

    228
    13
    18
    May 31, 2015
    Ratings:
    +20
    Local Time:
    5:20 PM
    here's what I got

    Code:
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 2
    --------------------------------------------------------
    
    Updating Current Centmin Mod code branch via git
            cd /usr/local/src/centminmod-123.08beta03
            git stash
            git pull
            chmod +x centmin.sh
    No local changes to save
    From https://github.com/centminmod/centminmod
       505156a..6ecac1a  123.08beta03 -> origin/123.08beta03
       505156a..6ecac1a  master     -> origin/master
    Updating 505156a..6ecac1a
    Fast-forward
    tools/cminfo.sh |    4 ++++
    1 files changed, 4 insertions(+), 0 deletions(-)
    
     
  11. eva2000

    eva2000 Administrator Staff Member

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    looks good .. you had 1 file update for tools/cminfo.sh as i committed an update today Beta Branch - update tools/cminfo.sh | Centmin Mod Community :D

    Code:
    Fast-forward
    tools/cminfo.sh |    4 ++++
    1 files changed, 4 insertions(+), 0 deletions(-)
    So the submenu 2 is working to update your local Centmin Mod code :)
     
  12. quicksalad

    quicksalad Member

    228
    13
    18
    May 31, 2015
    Ratings:
    +20
    Local Time:
    5:20 PM
    is option 3 reserved for future udpates?
     
  13. eva2000

    eva2000 Administrator Staff Member

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yup.. or for trying and switching to experimental branches when or if they become available :)

    i.e. when 123.08stable branch comes out you should be able to use centmin.sh menu option 23 > submenu option 3 to switch to stable 123.08stable branch :)
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Code:
    cd /usr/local/src/centminmod
    git stash
    git pull
    More recent example.

    Example of updating Centmin Mod code as outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS via centmin.sh menu option 23 submenu option 1+2 or 2

    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.08 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu               
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2/5.5 & 10.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + WP Super Cache
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 23
    --------------------------------------------------------
    
    Code:
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu         
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    If you already run submenu option 1 prior, then you can just run submenu option 2.

    Code:
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu         
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 2
    --------------------------------------------------------
    
    Updating Current Centmin Mod code branch via git
            cd /usr/local/src/centminmod
            git stash
            git pull
            chmod +x centmin.sh
    No local changes to save
    From https://github.com/centminmod/centminmod
       d25f644..3d87839  123.08stable -> origin/123.08stable
       68c2a57..76b98ed  123.09beta01 -> origin/123.09beta01
       8fd10bf..0f90b19  master     -> origin/master
    Updating d25f644..3d87839
    Fast-forward
    centmin.sh              |  4 ++--
    inc/nginx_addvhost.inc  |  7 ++++++-
    inc/openssl_install.inc | 33 +++++++++++++++++++--------------
    inc/wpsetup.inc         |  7 ++++++-
    tools/nv.sh             |  7 ++++++-
    tools/nvwp.sh           |  7 ++++++-
    6 files changed, 45 insertions(+), 20 deletions(-)
    
    You can see the updated files on your local /usr/local/src/centminmod directory that I updated to backport cloudflare chacha20 patch support and to update to Nginx 1.9.12 defaults.

    Then exit out of all menus via menu option 4 or 24 until you return to SSH command prompt. Then re-change back into /usr/local/src/centminmod directory and run centmin.sh again to run menu option 4 to update Nginx
    Code:
    cd /usr/local/src/centminmod
    ./centmin.sh
    If you curious you can also see commit logs if you change into /usr/local/src/centminmod and run the git log commands

    Code:
    cd /usr/local/src/centminmod
    git log -4
    Once you have centmin.sh menu option 23 submenu option 1 ran once, you can also do manual updates outside of centmin.sh via SSH commands
    Code:
    cd /usr/local/src/centminmod
    git stash
    git pull
     
    Last edited: Feb 26, 2016
  15. eva2000

    eva2000 Administrator Staff Member

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  16. eva2000

    eva2000 Administrator Staff Member

    54,348
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Reminder, when you log into your Centmin Mod 123.09beta01 server, the MOTD info display will tell you if you have Centmin Mod code updates available i.e.
    Code (Text):
    ===============================================================================
     Centmin Mod code updates available for /usr/local/src/centminmod
     to update re-run centmin.sh menu option 23 submenu option 2
    ===============================================================================
    

    or when up to date
    Code (Text):
    ===============================================================================
     Centmin Mod local code is up to date at /usr/local/src/centminmod
     no available updates at this time...
    ===============================================================================