Skip to content

Commit

Permalink
restart-dashboard: fail mgr instead of disable and enable dashboard
Browse files Browse the repository at this point in the history
Based on the idea given by Sebastian #30
Signed-off-by: Nizamudeen A <[email protected]>
  • Loading branch information
nizamial09 committed Feb 11, 2022
1 parent 6e2802d commit 32cd60e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/ceph/restart-dashboard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ set -e

cd /ceph/build

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

0 comments on commit 32cd60e

Please sign in to comment.