Skip to content

Commit

Permalink
Merge pull request #12 from influxdb/s3-cleanup
Browse files Browse the repository at this point in the history
Clean up descriptions and stop pushing to both S3 buckets.
  • Loading branch information
toddboom committed Jun 20, 2015
2 parents 051cd03 + b71cfb7 commit 6566cc5
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ ARCH=`uname -i`
LICENSE=MIT
URL=influxdb.com
MAINTAINER=support@influxdb.com
VENDOR=Influxdb
DESCRIPTION="InfluxDB agent"
VENDOR=InfluxDB
DESCRIPTION="InfluxDB Telegraf agent"
PKG_DEPS=(coreutils)
GO_VERSION="go1.4.2"
GOPATH_INSTALL=
Expand Down Expand Up @@ -340,15 +340,8 @@ if [ "x$response" == "xy" ]; then
for filepath in `ls *.{deb,rpm}`; do
echo "Uploading $filepath to S3"
filename=`basename $filepath`
bucket=influxdb
echo "Uploading $filename to s3://influxdb/$filename"
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
echo "Uploading $filename to s3://get.influxdb.org/telegraf/$filename"
AWS_CONFIG_FILE=$AWS_FILE aws s3 cp $filepath s3://get.influxdb.org/telegraf/$filename --acl public-read --region us-east-1
if [ $? -ne 0 ]; then
echo "Upload failed -- aborting".
cleanup_exit 1
Expand Down

0 comments on commit 6566cc5

Please sign in to comment.