Join the community today
Register Now

Upgrade After doing code update

Discussion in 'Install & Upgrades or Pre-Install Questions' started by CarpCharacin, Dec 14, 2016.

  1. CarpCharacin

    CarpCharacin Member

    203
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    1:24 PM
    1.13.0
    MariaDB 10
    After I do a code update it says this
    Code:
    ##################### IMPORTANT #####################
     To complete update
    ##################### IMPORTANT #####################
     run:
    
      cd /usr/local/src/centminmod
    
     before invoking centmin.sh again
    ##################### IMPORTANT #####################
    
    Do I have to run that to finish updates? It says it us up to date after doing the update and not doing that command.
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,584
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,774
    Local Time:
    5:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    yes get in habit of doing that as centmin.sh runs may trigger auto updates/fixes
     
  3. CarpCharacin

    CarpCharacin Member

    203
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    1:24 PM
    1.13.0
    MariaDB 10
    If I do it, it dosen't say it is updating it just changes where the hostname is to centmin. Is there a command I have to do after doing it?
     
  4. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,584
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,774
    Local Time:
    5:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    not sure what you mean you just need to do

    1. cd /usr/local/src/centminmod
    2. ./centmin.sh
    3. exit centmin.sh via menu option 24

    update complete
     
    • Like Like x 1
  5. RB1

    RB1 Active Member

    269
    70
    28
    Nov 11, 2016
    California
    Ratings:
    +117
    Local Time:
    12:24 PM
    Nginx 1.13.x
    MariaDB 10.1.x
    I prefer two step version
    > centmin
    > 24
    :pompous:
     
  6. CarpCharacin

    CarpCharacin Member

    203
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    1:24 PM
    1.13.0
    MariaDB 10
    To get to the centmin menu I would just do sudo centmin. What makes that one different?
     
  7. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,584
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,774
    Local Time:
    5:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    post #4 above is just for after updating centmin mod code itself to complete the update as centmin.sh runs auto trigger any updated fixes I may apply behind the scenes.
     
  8. CarpCharacin

    CarpCharacin Member

    203
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    1:24 PM
    1.13.0
    MariaDB 10
    I did an upgrade and I did cd /usr/local/src/centminmod and then ./centmin.sh and then I went to menu option 23 and then option 2 after I did the update using sudo centmin. Did that apply the updates? Why dosen't it just apply the updtes after going to sudo centmin option 23 and then option 2?
     
  9. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,584
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,774
    Local Time:
    5:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    yes it should of
    because some updates and fixes are coded into centmin.sh itself and need centmin.sh to run to deploy them

    all centmin.sh menu option 23 submenu option 2 does is pull and updated the code set in /usr/local/src/centminmod directory where centmin.sh resides.

    think of it like downloading a software update for windows (centmin.sh menu option 23) and then having to run the installer to update software in windows (centmin.sh re-run)
     
  10. CarpCharacin

    CarpCharacin Member

    203
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    1:24 PM
    1.13.0
    MariaDB 10
    But I have done updates without doing that and it says that it is still up to date. So do I have to do centmin.sh menu option 23 and then option 2 after doing the same thing with sudo centmin, or can I just do centmin.sh and then close it? Also, why do I have to do the cd command and then ./centmin.sh and not just do sudo centmin? Doesn't sudo centmin open centmin.sh?
     
  11. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,584
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,774
    Local Time:
    5:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    still up to date is referring to the code itself in /usr/local/src/centminmod only it doesn't mean latest updates coded in centmin.sh are applied if any

    yes both do the same just cd method is just more foolproof

    steps are

    step 1. centmin.sh option 23 submenu 2 that downloads code to /usr/local/src/centminmod but current running centmin.sh can not see that updated code in /usr/local/src/centminmod due to how linux filesystem/caches work so need to exit centmin.sh via centmin.sh menu option 24

    step 2. then cd back into /usr/local/src/centminmod and re-run centmin.sh which will now see and use the updated code from first step
     
    • Informative Informative x 1
  12. CarpCharacin

    CarpCharacin Member

    203
    14
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +18
    Local Time:
    1:24 PM
    1.13.0
    MariaDB 10
    But do I have to cd in the first time? I just normally do sudo centmin and then cd in to run it again. Do I have to cd in the second time also or just sudo centmin?
     
  13. eva2000

    eva2000 Administrator Staff Member

    29,016
    6,584
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,774
    Local Time:
    5:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    cd in only 2nd time, first time doesn't matter how you run centmin.sh to get to menu option 23 submenu option 2
     
    • Like Like x 1