优化检查
This commit is contained in:
@@ -62,7 +62,7 @@ mc alias set oss $OSS_ENDPOINT $OSS_ACCESS_KEY $OSS_SECRET_KEY --api S3v4
|
|||||||
|
|
||||||
# Check if OSS is accessible
|
# Check if OSS is accessible
|
||||||
echo "Checking OSS connectivity..."
|
echo "Checking OSS connectivity..."
|
||||||
if ! mc ls oss/$BUCKET_NAME > /dev/null 2>&1; then
|
if ! mc ls oss/backresult > /dev/null 2>&1; then
|
||||||
echo "Error: Unable to connect to OSS at $OSS_ENDPOINT"
|
echo "Error: Unable to connect to OSS at $OSS_ENDPOINT"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user