File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ echo "${_group}Bootstrapping seaweedfs (profiles)..."
1313
1414start_service_and_wait_ready seaweedfs
1515$dc exec -e " HTTP_PROXY=${HTTP_PROXY:- } " -e " HTTPS_PROXY=${HTTPS_PROXY:- } " -e " NO_PROXY=${NO_PROXY:- } " -e " http_proxy=${http_proxy:- } " -e " https_proxy=${https_proxy:- } " -e " no_proxy=${no_proxy:- } " seaweedfs apk add --no-cache s3cmd
16+ s3cmd=" $dc exec seaweedfs s3cmd"
1617
1718bucket_list=$( $s3cmd --access_key=sentry --secret_key=sentry --no-ssl --region=us-east-1 --host=localhost:8333 --host-bucket=' localhost:8333/%(bucket)' ls)
1819
@@ -70,6 +71,7 @@ if [[ $(echo "$bucket_list" | tail -1 | awk '{print $3}') != 's3://profiles' ]];
7071 $s3cmd --access_key=sentry --secret_key=sentry --no-ssl --region=us-east-1 --host=localhost:8333 --host-bucket=' localhost:8333/%(bucket)' mb s3://profiles
7172
7273 # Check if there are files in the sentry-vroom volume
74+ start_service_and_wait_ready vroom
7375 vroom_files_count=$( $dc exec vroom sh -c " find /var/vroom/sentry-profiles -type f | wc -l" )
7476 if [[ " $vroom_files_count " -gt 0 ]]; then
7577 echo " Migrating $vroom_files_count files from 'sentry-vroom' volume to 'profiles' bucket on SeaweedFS..."
You can’t perform that action at this time.
0 commit comments