This repository has been archived by the owner on Sep 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote branch 'upstream/master' into spotinstances
- Loading branch information
Showing
6 changed files
with
129 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
bucket_name=CumulusTest$RANDOM | ||
fname=GRP$RANDOM | ||
|
||
s3cmd mb s3://$bucket_name | ||
# just run it a few times for races | ||
s3cmd -r put /etc/group s3://$bucket_name/$fname | ||
if [ "X$?" != "X0" ]; then | ||
echo "recursive put failed" | ||
exit 1 | ||
fi | ||
s3cmd setacl --acl-public s3://$bucket_name/$fname | ||
if [ "X$?" != "X0" ]; then | ||
echo "setacl failed failed" | ||
exit 1 | ||
fi | ||
|
||
s3cmd -r --force del s3://$bucket_name/ | ||
if [ "X$?" != "X0" ]; then | ||
echo "ERROR: delete bucket failed" | ||
exit 1 | ||
fi | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters