Plugin script failed because it was trying to gzip -dc ${TARGETDIR}${FILENAME},

This was missing a / between the directory and the filename, so it was trying to
uncompress: /opt/logstash/logstash-1.4.0.beta1/vendor/logstashlogstash-contrib-1.4.0.beta1.tar.gz

Changed to uncompress ${TARGET}, which is defined as: ${TARGETDIR}/${FILENAME}
This commit is contained in:
Lance O'Connor 2014-02-24 23:11:06 +00:00
parent 0ba3cc2eb3
commit 040ae9f6a2

View file

@ -52,7 +52,7 @@ case $1 in
echo "Exiting."
exit 1
fi
gzip -dc ${TARGETDIR}${FILENAME} | tar -xC $TARGETDIR
gzip -dc ${TARGET} | tar -xC $TARGETDIR
cp -R ${TARGETDIR}/$FILEPATH/* . ;; # Copy contents to local directory, adding on top of existing install
*)
echo "Usage: bin/plugin install contrib"