Verified Commit e28e3f2d authored by Dmytro Bogatov's avatar Dmytro Bogatov 💕

Fix.

parent c1ea33b9
......@@ -36,11 +36,13 @@ cd $TEMP_DIR
mkdir -p public
s3cmd -c ../terraform/spaces/$FROM get s3://$FROM/public/ --recursive public
s3cmd -c ../terraform/spaces/$TO put public s3://$TO --recursive
OBJECTS=( "public/" "$GITLAB" "gitlab-secrets.json" )
s3cmd -c ../terraform/spaces/$FROM get s3://$FROM/$GITLAB --recursive
s3cmd -c ../terraform/spaces/$TO put $GITLAB s3://$TO --recursive
for object in "${OBJECTS[@]}"
do
s3cmd -c ../terraform/spaces/$FROM get s3://$FROM/$object --recursive $object
s3cmd -c ../terraform/spaces/$TO put $object s3://$TO/$object --recursive
done
cd $CWD
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment