cleanup scripts and apply shfmt (#17284)

This commit is contained in:
Harshavardhana
2023-05-25 22:07:25 -07:00
committed by GitHub
parent 615169c4ec
commit 4a425cbac1
28 changed files with 1456 additions and 1465 deletions

View File

@@ -9,7 +9,7 @@ mc mb -l dest/bucket
mc admin user add source repladmin repladmin123
# create a replication policy for repladmin
cat > repladmin-policy-source.json <<EOF
cat >repladmin-policy-source.json <<EOF
{
"Version": "2012-10-17",
"Statement": [
@@ -51,7 +51,7 @@ mc admin user add dest repluser repluser123
# create a replication policy for repluser
# Remove "s3:GetBucketObjectLockConfiguration" if object locking is not enabled, i.e. bucket was not created with `mc mb --with-lock` option
# Remove "s3:ReplicateDelete" if delete marker replication is not required
cat > replpolicy.json <<EOF
cat >replpolicy.json <<EOF
{
"Version": "2012-10-17",
"Statement": [
@@ -98,4 +98,4 @@ mc admin policy attach dest replpolicy --user=repluser
# configure replication config to remote bucket at http://localhost:9000
mc replicate add source/bucket --priority 1 --remote-bucket http://repluser:repluser123@localhost:9000/bucket \
--replicate existing-objects,delete,delete-marker,replica-metadata-sync
--replicate existing-objects,delete,delete-marker,replica-metadata-sync