• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    error when running install-script

    Scheduled Pinned Locked Moved Unsolved
    General
    install centos
    3
    3
    1.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pmonstad
      last edited by

      I’m trying to upgrade from svn 3427 to latest of today. When I run the install script I get an error telling:

      ./installfog.sh
      …/lib/common/functions.sh: line 305: syntax error in conditional expression: unexpected token (' ../lib/common/functions.sh: line 305: syntax error near +(’
      …/lib/common/functions.sh: line 305: if [[ "$linuxReleaseName" == +(*[Ff]'edora'*) ]]; then' ../lib/common/config.sh: line 62: syntax error in conditional expression: unexpected token(’
      …/lib/common/config.sh: line 62: syntax error near +(*' ../lib/common/config.sh: line 62: if [[ “$linuxReleaseName” == +(
      ‘Ubuntu’|‘Debian’) ]]; then’
      ./installfog.sh: line 45: syntax error in conditional expression: unexpected token (' ./installfog.sh: line 45: syntax error near +(
      ’
      ./installfog.sh: line 45: ` if [[ “$linuxReleaseName” == +([Dd]‘ebian’|‘buntu’) ]]; then’

      I’m running Centos 5.11 and php 5.6.8

      1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman
        last edited by

        I’m fairly certain it’s failing because you’re running it on CentOS 5.11.

        The latest FOG Trunk has been tested working on the RH varieties CentOS 7, Fedora 21 and 22.

        Past that, you’ll need to get in touch with the @Developers to see if they are willing to make it work with CentOS 5.11, or if they are willing to help you hack something together on it just for you.

        I’d advise you to migrate to something newer.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by

          @pmonstad said:

          syntax error in conditional expression: unexpected token (

          Probably CentOS 5.11 has a pretty old version of bash running which cannot handle regular expressions in condition clauses. I guess there is no easy solution to this but update your OS. Probably best if you can setup a new server for testing FOG and if you are happy with it you can still consider updating your existing OS.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post

          199

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project