add s3 access check

This commit is contained in:
weisd
2025-03-06 15:17:17 +08:00
parent b821533b19
commit 937a0c7dee
11 changed files with 742 additions and 313 deletions

View File

@@ -31,4 +31,12 @@ if [ -n "$1" ]; then
fi
# check ./rustfs/static/index.html not exists
if [ ! -f ./rustfs/static/index.html ]; then
echo "Downloading rustfs-console-latest.zip"
# download rustfs-console-latest.zip do not show log
curl -s -L "https://dl.rustfs.com/console/rustfs-console-latest.zip" -o tempfile.zip && unzip -q -o tempfile.zip -d ./rustfs/static && rm tempfile.zip
fi
cargo run --bin rustfs