zzOzz / pwm

Automatically exported from code.google.com/p/pwm
0 stars 0 forks source link

Command.sh does not run #508

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install pwm
2. cd to the WEB-INF
3. chmod & run

What is the expected output? What do you see instead?
script should run without errors
Instead, it errors out

What version of PWM are you using?
1.7.0

What ldap directory and version are you using?
eDir 8.8.7

Please paste any error log messages below:
Two errors.
First, the script was saved in Windows and has Ctrl-Ms in the file.  Upon 
running, you are greeted with:
-bash: ./tt.sh: /bin/bash^M: bad interpreter: No such file or directory

Once the Ctrl-Ms are filtered out and the file is properly saved in *nix 
format, you'll run into the second error.

line 18: $JAVA_HOME/jre/bin/java $JAVA_OPTS
the jre shouldn't be in there.  It results in the following: 
./Command.sh: line 18: /usr/lib64/jvm/jre/jre/bin/java: No such file or 
directory

edit out the "jre/" and the script runs fine.

Original issue reported on code.google.com by be...@technologist.com on 7 Nov 2013 at 12:39

GoogleCodeExporter commented 9 years ago
Fixed in revision 538

Original comment by jrivard on 11 Nov 2013 at 4:40

GoogleCodeExporter commented 9 years ago
Wasn't fixed in 538; perhaps forgotten to check in?

I found more issues with the script, at least on Mac OS X.

Original comment by menno.pi...@gmail.com on 12 Nov 2013 at 3:41

GoogleCodeExporter commented 9 years ago
Should be fixed in r.643

Original comment by menno.pi...@gmail.com on 12 Nov 2013 at 3:42