Skip to content

Commit dae4436

Browse files
committed
feat: review from Sentry
1 parent 240eb92 commit dae4436

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

install/bootstrap-s3-profiles.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ echo "${_group}Bootstrapping seaweedfs (profiles)..."
1313

1414
start_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

1718
bucket_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..."

0 commit comments

Comments
 (0)