Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Feb 27, 2024
1 parent 175f891 commit 8ccd155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mirror-s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ fi

BW_LIMIT=""

if [ -n "$BANDWIDTH_LIMIT" ]]; then
if [ -n "$BANDWIDTH_LIMIT" ]; then
echo "== BANDWIDTH LIMITER ENABLED ($BANDWIDTH_LIMIT) =="
BW_LIMIT="--bwlimit=$BANDWIDTH_LIMIT"
BW_LIMIT="--bwlimit=$BANDWIDTH_LIMIT"
fi
rclone --progress $BW_LIMIT --config=/etc/rclone.conf sync sync_src:${SOURCE_BUCKET} sync_dst:${DESTINATION_BUCKET} && curl ${HEALTHCHECK_URL}

0 comments on commit 8ccd155

Please sign in to comment.