From a0904d21127d32bb3d88e098ccc1ffb2d24b405f Mon Sep 17 00:00:00 2001 From: tshuli Date: Wed, 13 Sep 2023 15:55:31 +0800 Subject: [PATCH] fix: script to enable bucket versioning --- init-localstack.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 init-localstack.sh diff --git a/init-localstack.sh b/init-localstack.sh old mode 100644 new mode 100755 index 7601903abb..ee8569ddd8 --- a/init-localstack.sh +++ b/init-localstack.sh @@ -29,7 +29,9 @@ awslocal s3 mb s3://$STATIC_ASSETS_S3_BUCKET # Buckets for virus scanner # Set to versioning enabled -awslocal s3 mb s3://$VIRUS_SCANNER_QUARANTINE_S3_BUCKET --versioning-configuration Status=Enabled -awslocal s3 mb s3://$VIRUS_SCANNER_CLEAN_S3_BUCKET --versioning-configuration Status=Enabled +awslocal s3 mb s3://$VIRUS_SCANNER_QUARANTINE_S3_BUCKET +awslocal s3api put-bucket-versioning --bucket $VIRUS_SCANNER_QUARANTINE_S3_BUCKET --versioning-configuration Status=Enabled +awslocal s3 mb s3://$VIRUS_SCANNER_CLEAN_S3_BUCKET + set +x