Skip to content

Commit

Permalink
mkcephfs: cosd mkfs as root, then chown
Browse files Browse the repository at this point in the history
  • Loading branch information
liewegas committed Mar 8, 2010
1 parent d77caf2 commit 0383878
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mkcephfs.in
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ for name in $what; do
fi

[ -n "$ssh" ] && scp $monmap $host:$monmap
do_cmd "$BINDIR/cosd -c $conf --monmap $monmap -i $num --mkfs --osd-data $osd_data"
do_root_cmd "$BINDIR/cosd -c $conf --monmap $monmap -i $num --mkfs --osd-data $osd_data"
[ -n "$user" ] && do_root_cmd "chown -R $user $osd_data"

if [ -n "$keyring" ]; then
if [ -n "$ssh" ]; then
Expand Down

0 comments on commit 0383878

Please sign in to comment.