Files
rustfs/scripts/run.sh
2024-06-28 11:09:20 +08:00

21 lines
383 B
Bash
Executable File

#!/bin/bash
mkdir -p ./target/volume/test{0..4}
DATA_DIR="./target/volume/test{0...4}"
if [ -n "$1" ]; then
DATA_DIR="$1"
fi
if [ -z "$RUST_LOG" ]; then
export RUST_LOG="rustfs=debug"
fi
cargo run \
-- --access-key AKEXAMPLERUSTFS \
--secret-key SKEXAMPLERUSTFS \
--address 0.0.0.0:9010 \
--domain-name localhost:9010 \
"$DATA_DIR"