Change tar package creation format

This change will make the tar.gz file contain a root folder
with the following format: influxdb_$VERSION_$ARCH
pull/3156/head
Marcos Lilljedahl 2015-06-26 16:57:08 -03:00
parent 45044b40a0
commit 674da83a7e
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ if [ $? -ne 0 ]; then
fi
echo "Debian package created successfully."
fpm -s dir -t tar --description "$DESCRIPTION" $COMMON_FPM_ARGS && gzip influxdb.tar && mv influxdb.tar.gz influxdb_${VERSION}_${ARCH}.tar.gz
fpm -s dir -t tar --prefix influxdb_${VERSION}_${ARCH} -p influxdb_${VERSION}_${ARCH}.tar.gz --description "$DESCRIPTION" $COMMON_FPM_ARGS
if [ $? -ne 0 ]; then
echo "Failed to create Tar package -- aborting."
cleanup_exit 1