Actions
Bug #6937
closed/etc/init.d/rudder-jetty prints error with openjdk on debian/sid
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
Hi
I got the following error on a debian sid:
_root@ks01:~# /etc/init.d/rudder-jetty status
/etc/init.d/rudder-jetty: line 403: [: -lt: unary operator expected
Checking arguments to Jetty:
_
The code says:
_JAVA_VERSION=$(${JAVA} -version 2>&1 | grep "java version" | sed 's%java version \"[0-9]\.\([0-9]\)\.[0-9].*\"%\1%')
echo $JAVA_VERSION
if [ ${JAVA_VERSION} -lt 7 ]
..._
and well, my java installed with rudder-server-root/3.0.6/jetty is openjdk:
$ java -version
openjdk version "1.8.0_60-internal"
OpenJDK Runtime Environment (build 1.8.0_60-internal-b22)
OpenJDK 64-Bit Server VM (build 25.60-b22, mixed mode)
Jetty is running, no more errors than the printed one
Actions