Syskeygen for X-Pack 5.0-alpha5

(Karl Grose) #1

There appears to be a small bug in the syskeygen Bash script for 5.0-alpha5 which causes the key file name to be incorrect. Here's the patch:

diff -u bin/x-pack/syskeygen.orig bin/x-pack/syskeygen
--- bin/x-pack/syskeygen.orig   2016-09-09 23:19:15.845900029 -0700
+++ bin/x-pack/syskeygen        2016-09-09 23:00:49.717433221 -0700
@@ -94,7 +94,7 @@

 cd "$ES_HOME" > /dev/null
-"$JAVA" $ES_JAVA_OPTS -Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" $properties "{args[@]}"
+"$JAVA" $ES_JAVA_OPTS -Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" $properties "${args[@]}"
 cd - > /dev/null
 exit $status

(David Pilato) #2

Thanks a lot! I forwarded it to a dev.

(system) #3