]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mkcephfs: cosd and cmon setup must happen as root.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Tue, 6 Sep 2011 20:25:00 +0000 (13:25 -0700)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Tue, 6 Sep 2011 20:25:00 +0000 (13:25 -0700)
Without this, they cannot e.g. write to /var/log, or probably
even to their data directories.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
src/mkcephfs.in

index d4d5092bf9386efe8f70534b3e09ae98ba6f87da..fa43155c17338526887e8b97685db21fb2c23930 100644 (file)
@@ -437,7 +437,7 @@ if [ $allhosts -eq 1 ]; then
            do_root_cmd "$0 -d $rdir --prepare-osdfs $name"
        fi
 
-       do_cmd "$0 -d $rdir --init-daemon $name"
+       do_root_cmd "$0 -d $rdir --init-daemon $name"
 
        # collect the key
        if [ -n "$ssh" ]; then
@@ -468,7 +468,7 @@ if [ $allhosts -eq 1 ]; then
            rdir=$dir
        fi
        
-       do_cmd "$0 -d $rdir --init-daemon $name"
+       do_root_cmd "$0 -d $rdir --init-daemon $name"
     done
 
     # admin keyring