Skip to content

Commit decc9a1

Browse files
committed
restart-dashboard: fail mgr instead of disable and enable dashboard
Based on the idea given by Sebastian #30 Signed-off-by: Nizamudeen A <[email protected]>
1 parent 6e2802d commit decc9a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/ceph/restart-dashboard.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ set -e
44

55
cd /ceph/build
66

7-
"$CEPH_BIN"/ceph mgr module disable dashboard
8-
"$CEPH_BIN"/ceph mgr module enable dashboard --force
7+
MGR_ID=$("$CEPH_BIN"/ceph mgr stat | awk -v FS='"active_name": ' 'NF>1{print $2}' | tr -d '",')
8+
"$CEPH_BIN"/ceph mgr fail $MGR_ID

0 commit comments

Comments
 (0)