mirror of
https://github.com/ceph/ceph
synced 2024-12-27 05:53:20 +00:00
3aae5ca6fd
/bin/bash is a Linuxism. Other operating systems install bash to different paths. Use /usr/bin/env in shebangs to find bash. Signed-off-by: Alan Somers <asomers@gmail.com>
12 lines
192 B
Bash
Executable File
12 lines
192 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
bonnie_bin=`which bonnie++`
|
|
[ $? -eq 1 ] && bonnie_bin=/usr/sbin/bonnie++
|
|
|
|
uid_flags=""
|
|
[ "`id -u`" == "0" ] && uid_flags="-u root"
|
|
|
|
$bonnie_bin $uid_flags -n 100
|