Page 1 of 1

Syntax error in packages.sh - Upgrade from 8.6.0 to 8.8.6

Posted: Mon Jan 29, 2018 12:46 pm
by Khalimerot
Hi,

i'm trying to update my Zimbra server from 8.6.0 to 8.8.6, but when i start install.sh i have this error:

Code: Select all

./util/modules/packages.sh: ligne233: Erreur de syntaxe près du symbole inattendu « ( »
./util/modules/packages.sh: ligne233: `         if grep -q -w -e "^$package" <(LocatePackageInRepo "$package")'
The install process continue but fail when it has to download zimbra-core from repository:

Code: Select all

The system will be modified.  Continue? [N] y

Beginning Installation - see /tmp/install.log.llGzXQPK for details...

./util/modules/packages.sh: ligne46: locatePackage : commande introuvable
                                     zimbra-core is missing.                                   ERROR

Unable to find missing packages in repository. System is not modified.
The OS is CentOS 7 X64.

How can make it work?
Thank you.

Re: Syntax error in packages.sh - Upgrade from 8.6.0 to 8.8.6

Posted: Tue Jan 30, 2018 10:15 am
by msquadrat
This sounds like [bug]107309[/bug].

Re: Syntax error in packages.sh - Upgrade from 8.6.0 to 8.8.6

Posted: Tue Jan 30, 2018 12:40 pm
by Khalimerot
I thought about that when i saw those weird character, so i change language to en_US.UTF8, with no luck...

I still have the same error:

Code: Select all

  ./util/modules/packages.sh: line 233: syntax error near unexpected token `('
./util/modules/packages.sh: line 233: `         if grep -q -w -e "^$package" <(LocatePackageInRepo "$package")'
Thank you.

Re: Syntax error in packages.sh - Upgrade from 8.6.0 to 8.8.6

Posted: Tue Jan 30, 2018 1:32 pm
by msquadrat
Hmmm… which edition is this, FOSS or the NE? What does zmcontrol -v say?

IIRC was there recently a post on one of the forums where somebody else had some issues with the installer which only affected FOSS.

Re: Syntax error in packages.sh - Upgrade from 8.6.0 to 8.8.6

Posted: Tue Jan 30, 2018 1:36 pm
by msquadrat
Another thing: The error message looks like the install.sh script isn't executed by bash but some other shell. How exactly do you start the install.sh script? Do you call it like

Code: Select all

./install.sh
or something like

Code: Select all

sh install.sh
?

You should to the former.

Re: Syntax error in packages.sh - Upgrade from 8.6.0 to 8.8.6

Posted: Tue Jan 30, 2018 1:59 pm
by Khalimerot
I have a FOSS edition:

Code: Select all

Release 8.6.0_GA_1153.RHEL7_64_20141215151110 RHEL7_64 FOSS edition.

Re: Syntax error in packages.sh - Upgrade from 8.6.0 to 8.8.6

Posted: Tue Jan 30, 2018 2:45 pm
by Khalimerot
msquadrat wrote:Another thing: The error message looks like the install.sh script isn't executed by bash but some other shell. How exactly do you start the install.sh script? Do you call it like

Code: Select all

./install.sh
or something like

Code: Select all

sh install.sh
?

You should to the former.
Thank you !!

indeed i was doing sh install.sh.

work flawlessly with

Code: Select all

./install.sh