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

errors in functions.sh in 1.3.x

Scheduled Pinned Locked Moved Solved
FOG Problems
3
4
971
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.
  • R
    Ric41
    last edited by Jan 9, 2017, 2:41 PM

    Server
    • FOG Version: 1.2.0
    • OS: debian 8.6
    Client
    • OS: windows 7
    Description

    Hi
    I want to update fog 1.2.0 to 1.3.0. I downloaded the 1.3.0 fil, uncompress it and try to launch the installfog.sh. I have the following error :

    root@fogserver:~/fogproject/bin# sh installfog.sh
    installfog.sh: 20: installfog.sh: [[: not found
    installfog.sh: 84: …/lib/common/functions.sh: Syntax error: “(” unexpected (expecting “fi”)

    I tried to update as tell in the upgrade to trunk post, but i have the same error. I opened the functions.sh script with nano to check the code, but i have see nothing at these lines.
    How to know the lines concerned by these errors ? Are the lines 20 and 84 really the concerned lines or some includes files can modify the number line shown in the message ?

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Jan 9, 2017, 3:09 PM

      You should never be running the script as sh installfog.sh

      You should run it either as: bash installfog.sh or simply ./installfog.sh

      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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      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 2
      • Q
        Quazz Moderator
        last edited by Quazz Jan 9, 2017, 9:51 AM Jan 9, 2017, 3:51 PM

        sh is more limited than bash ./ automatically chooses the right tool to execute it (if available)

        1 Reply Last reply Reply Quote 0
        • R
          Ric41
          last edited by Jan 10, 2017, 9:10 AM

          ok, thanks

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

          180

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project