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

syntax error in startup script generated by 'activator dist' in play-2.3.3 #336

Closed
jn73 opened this issue Aug 26, 2014 · 4 comments
Closed
Labels
debian rpm universal Zip, tar.gz, tgz and bash issues

Comments

@jn73
Copy link

jn73 commented Aug 26, 2014

I initially reported this bug to the playframework project (playframework/playframework#3324). I was told that it belonged here, so here we go..:

After upgrading our application from play 2.2 => 2.3.3 the startup-script won't run on our (old) linux server.

output:

./bin/dashboard
./bin/dashboard: line 140: syntax error near unexpected token "$1"' ./bin/dashboard: line 140: java_args+=( "$1" )'

bash -version
GNU bash, version 3.00.15(1)-release (i686-redhat-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.

Yes, it's an old bash-version running on an old redhat server. Unfortunately that is out of my control. The script works fine when i run it on my macbook.

@muuki88
Copy link
Contributor

muuki88 commented Aug 26, 2014

Yeah, you already figured out the problem. The too old bash version.
You can provide your own startup file with a fix on this.

This line was introduced in #267

@jn73
Copy link
Author

jn73 commented Aug 28, 2014

After overriding the bash-template file (i used the one from sbt-native-packager v0.6.3) everything works just fine. Thanks for your help!

@muuki88
Copy link
Contributor

muuki88 commented Aug 28, 2014

Nice. Just of curiosity, what Java version do you use?
The version of this bash script has a lot of fixes missing, you may try the version before #267

@muuki88 muuki88 closed this as completed Aug 28, 2014
@jn73
Copy link
Author

jn73 commented Sep 5, 2014

Thanks for the tip. I will try that one instead. The java version is 1.6.0-18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debian rpm universal Zip, tar.gz, tgz and bash issues
Projects
None yet
Development

No branches or pull requests

2 participants