Learn about Centmin Mod LEMP Stack today
Register Now

Upgrade inc/nginx_upgrade.inc: line 634: syntax error near unexpected token `fi'

Discussion in 'Install & Upgrades or Pre-Install Questions' started by ElChorizo, Jun 10, 2024.

  1. ElChorizo

    ElChorizo Member

    79
    10
    8
    Apr 29, 2021
    Ratings:
    +18
    Local Time:
    10:46 AM
    1.19.10
    10.3.28
    Went to update centminmod today and got this error when running ./centmin.sh
    Code:
    [13:38][root centminmod]# ./centmin.sh
    /usr/local/src/centminmod/inc/nginx_upgrade.inc: line 634: syntax error near unexpected token `fi'
    /usr/local/src/centminmod/inc/nginx_upgrade.inc: line 634: `    fi'
    
    I'm on latest version:
    Code:
    [13:39][root centminmod]# cmupdate
    No local changes to save
    Already up-to-date.
    No local changes to save
    Already up-to-date.
    
    and still get error
    Code:
    [13:42][root centminmod]# ./updatecm.sh
    
    -------------------------------------
    Updating Centmin Mod code
    -------------------------------------
    
    * 130.00beta01
    No local changes to save
    Already up-to-date.
    commit d9512c9563509f25e0a6bb4f1b5abba728099c85
    Author: George Liu (eva2000) <eva2000@centminmod.com>
    Date:   Sun Jun 9 18:56:39 2024 +1000
    
        fix centmin.sh typo in 130.00beta01
    
    -------------------------------------
    Updated Centmin Mod code
    -------------------------------------
    
    [13:42][root centminmod]# cd /usr/local/src/centminmod/
    [13:42][root centminmod]# ./centmin.sh
    /usr/local/src/centminmod/inc/nginx_upgrade.inc: line 634: syntax error near unexpected token `fi'
    /usr/local/src/centminmod/inc/nginx_upgrade.inc: line 634: `    fi'
    


     
  2. atomi

    atomi Member

    40
    11
    8
    Jul 14, 2018
    Ratings:
    +26
    Local Time:
    6:46 PM
    1.29.x
    10.6
  3. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:46 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Just updated 130.00beta01 with fix so run cmupdate command and try again
     
  4. ElChorizo

    ElChorizo Member

    79
    10
    8
    Apr 29, 2021
    Ratings:
    +18
    Local Time:
    10:46 AM
    1.19.10
    10.3.28
    Thanks both of yall. This fixed it!