mirror of https://github.com/apache/druid.git
Merge pull request #2672 from himanshug/upload_mysql
update upload.sh to upload mysql-metadata-storage tarball too
This commit is contained in:
commit
60fc5d9ad5
15
upload.sh
15
upload.sh
|
@ -10,12 +10,19 @@ if [ $# -lt 1 ]; then
|
|||
fi
|
||||
|
||||
VERSION=$1
|
||||
TAR=druid-$VERSION-bin.tar.gz
|
||||
DRUID_TAR=druid-$VERSION-bin.tar.gz
|
||||
MYSQL_TAR=mysql-metadata-storage-$VERSION.tar.gz
|
||||
S3PATH=s3://static.druid.io/artifacts/releases
|
||||
|
||||
if [ ! -z "`s3cmd ls "$S3PATH/$TAR"`" ]; then
|
||||
echo "ERROR: Refusing to overwrite $S3PATH/$TAR" >&2
|
||||
if [ ! -z "`s3cmd ls "$S3PATH/$DRUID_TAR"`" ]; then
|
||||
echo "ERROR: Refusing to overwrite $S3PATH/$DRUID_TAR" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
s3cmd put distribution/target/$TAR $S3PATH/$TAR
|
||||
if [ ! -z "`s3cmd ls "$S3PATH/$MYSQL_TAR"`" ]; then
|
||||
echo "ERROR: Refusing to overwrite $S3PATH/$MYSQL_TAR" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
s3cmd put distribution/target/$DRUID_TAR $S3PATH/$DRUID_TAR
|
||||
s3cmd put distribution/target/$MYSQL_TAR $S3PATH/$MYSQL_TAR
|
||||
|
|
Loading…
Reference in New Issue