Merge pull request #12 from influxdb/s3-cleanup
Clean up descriptions and stop pushing to both S3 buckets.
This commit is contained in:
commit
6566cc51e3
15
package.sh
15
package.sh
|
@ -45,8 +45,8 @@ ARCH=`uname -i`
|
||||||
LICENSE=MIT
|
LICENSE=MIT
|
||||||
URL=influxdb.com
|
URL=influxdb.com
|
||||||
MAINTAINER=support@influxdb.com
|
MAINTAINER=support@influxdb.com
|
||||||
VENDOR=Influxdb
|
VENDOR=InfluxDB
|
||||||
DESCRIPTION="InfluxDB agent"
|
DESCRIPTION="InfluxDB Telegraf agent"
|
||||||
PKG_DEPS=(coreutils)
|
PKG_DEPS=(coreutils)
|
||||||
GO_VERSION="go1.4.2"
|
GO_VERSION="go1.4.2"
|
||||||
GOPATH_INSTALL=
|
GOPATH_INSTALL=
|
||||||
|
@ -340,15 +340,8 @@ if [ "x$response" == "xy" ]; then
|
||||||
for filepath in `ls *.{deb,rpm}`; do
|
for filepath in `ls *.{deb,rpm}`; do
|
||||||
echo "Uploading $filepath to S3"
|
echo "Uploading $filepath to S3"
|
||||||
filename=`basename $filepath`
|
filename=`basename $filepath`
|
||||||
bucket=influxdb
|
echo "Uploading $filename to s3://get.influxdb.org/telegraf/$filename"
|
||||||
echo "Uploading $filename to s3://influxdb/$filename"
|
AWS_CONFIG_FILE=$AWS_FILE aws s3 cp $filepath s3://get.influxdb.org/telegraf/$filename --acl public-read --region us-east-1
|
||||||
AWS_CONFIG_FILE=$AWS_FILE aws s3 cp $filepath s3://influxdb/$filename --acl public-read --region us-east-1
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "Upload failed -- aborting".
|
|
||||||
cleanup_exit 1
|
|
||||||
fi
|
|
||||||
echo "Uploading $filename to s3://get.influxdb.org/$filename"
|
|
||||||
AWS_CONFIG_FILE=$AWS_FILE aws s3 cp $filepath s3://get.influxdb.org/$filename --acl public-read --region us-east-1
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Upload failed -- aborting".
|
echo "Upload failed -- aborting".
|
||||||
cleanup_exit 1
|
cleanup_exit 1
|
||||||
|
|
Loading…
Reference in New Issue