Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while execute sh upgrade/upgrade_7.1_8.0.sh #89

Closed
dony71 opened this issue Aug 21, 2021 · 8 comments
Closed

error while execute sh upgrade/upgrade_7.1_8.0.sh #89

dony71 opened this issue Aug 21, 2021 · 8 comments

Comments

@dony71
Copy link

dony71 commented Aug 21, 2021

I have seafile raspi 7.1.5 and I'm trying to upgrade to 8.0.7
I follow this instruction
https://manual.seafile.com/upgrade/upgrade_notes_for_8.0.x/
However after going to directory "seafile-server-8.0.7" and execute "seafile-server-8.0.7", got error
upgrade/upgrade_7.1_8.0.sh: 35: upgrade/upgrade_7.1_8.0.sh: Syntax error: "(" unexpected
Anything I'm missing here?

@Mi-Sp
Copy link

Mi-Sp commented Aug 21, 2021

What version of php are you trying to run it with? Check php -v

@dony71
Copy link
Author

dony71 commented Aug 21, 2021

seafile@bananapim2plus:~/mycloud/seafile-server-8.0.7$ php -v

PHP 7.0.33-0+deb9u11 (cli) (built: Jul 12 2021 18:15:58) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.33-0+deb9u11, Copyright (c) 1999-2017, by Zend Technologies

@hol353
Copy link

hol353 commented Aug 22, 2021

Yep and I get it as well with PHP version:

PHP 7.4.22 (cli) (built: Jul 30 2021 13:09:18) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.22, Copyright (c), by Zend Technologies

@Mi-Sp
Copy link

Mi-Sp commented Aug 22, 2021

Did you execute the script by "sh minor-upgrade.sh"?
If so, please try it with ./minor-upgrade.sh.

@dony71
Copy link
Author

dony71 commented Aug 23, 2021

same problem

seafile@bananapim2plus:~/mycloud/seafile-server-8.0.7$ sh upgrade/minor-upgrade.sh -------------------------------------------------------------
This script would do the minor upgrade for you. Press [ENTER] to contiune
------------------------------------------------------------- upgrade/minor-upgrade.sh: 25: upgrade/minor-upgrade.sh: Syntax error: "(" unexpected

@dony71
Copy link
Author

dony71 commented Aug 23, 2021

@Mi-Sp
Copy link

Mi-Sp commented Aug 23, 2021

Well, that's what I wrote in the upper comment. Just use ./

@dony71 dony71 closed this as completed Aug 23, 2021
@badan-cloud
Copy link

Instead of doing:

sh upgrade/upgrade_7.1_8.0.sh

do:

bash upgrade/upgrade_7.1_8.0.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants