minio/docker/start.sh
2016-03-24 20:38:36 -07:00

15 lines
285 B
Bash
Executable File

#!/bin/bash
if [ "$1" = 'fs' ]; then
if [ -z "$2" ]; then
echo "Invalid arguments"
echo "Usage: fs <export_dir>"
exit 1
else
/bin/mkdir -p "$2" && /minio init fs "$2" && /minio server
fi
else
echo "Usage: fs <export_dir>"
exit 0
fi