]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
src/stop.sh: add `sudo` to `cephadm ls` command 46546/head
authorMichael Fritch <mfritch@suse.com>
Mon, 6 Jun 2022 22:03:08 +0000 (16:03 -0600)
committerMichael Fritch <mfritch@suse.com>
Mon, 6 Jun 2022 22:28:38 +0000 (16:28 -0600)
cephadm must be run as root create a list of daemons to stop from an
existing vstart cluster

Fixes: https://tracker.ceph.com/issues/55902
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/stop.sh

index 1f65ea2f33b0c4856290d39ff5c2c07a64192c1b..6a3caae711f71dba7e0ac362cb1bc72566d85273 100755 (executable)
@@ -189,7 +189,7 @@ if [ $stop_all -eq 1 ]; then
         fi
     fi
 
-    daemons="$($CEPHADM_DIR_PATH/cephadm ls 2> /dev/null)"
+    daemons="$(sudo $CEPHADM_DIR_PATH/cephadm ls 2> /dev/null)"
     if [ $? -eq 0 -a "$daemons" != "[]" ]; then
         do_killcephadm
     fi