Learn about Centmin Mod LEMP Stack today
Become a Member

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 Premium Member Premium Member

    32
    4
    8
    Apr 29, 2021
    Ratings:
    +8
    Local Time:
    4:41 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

    36
    10
    8
    Jul 14, 2018
    Ratings:
    +23
    Local Time:
    12:41 PM
    1.27.x
    10
  3. eva2000

    eva2000 Administrator Staff Member

    52,787
    12,080
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,607
    Local Time:
    7:41 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Just updated 130.00beta01 with fix so run cmupdate command and try again
     
  4. ElChorizo

    ElChorizo Premium Member Premium Member

    32
    4
    8
    Apr 29, 2021
    Ratings:
    +8
    Local Time:
    4:41 AM
    1.19.10
    10.3.28
    Thanks both of yall. This fixed it!