From: Michael Fritch Date: Mon, 6 Jun 2022 22:03:08 +0000 (-0600) Subject: src/stop.sh: add `sudo` to `cephadm ls` command X-Git-Tag: v18.0.0~506^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ae8a0dcebd21ede42aad656ba0937058de58b0bc;p=ceph-ci.git src/stop.sh: add `sudo` to `cephadm ls` command 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 --- diff --git a/src/stop.sh b/src/stop.sh index 1f65ea2f33b..6a3caae711f 100755 --- a/src/stop.sh +++ b/src/stop.sh @@ -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