Files
rustfs/scripts/run.sh
2024-06-25 16:22:14 +08:00

19 lines
375 B
Bash
Executable File

#!/bin/bash
DATA_DIR="/tmp"
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 \
-- --host localhost \
-- --port 9010 \
-- --domain-name localhost:9010 \
"$DATA_DIR"