From 3ea5a7bc41261bc90c944d14483682427ae757cd Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 1 Sep 2015 15:06:21 +0200 Subject: [PATCH] Correct 'ceph osd' cmd with default user. --- dynmotd_scripts/05ceph | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dynmotd_scripts/05ceph b/dynmotd_scripts/05ceph index a490642..ab9eda1 100755 --- a/dynmotd_scripts/05ceph +++ b/dynmotd_scripts/05ceph @@ -128,16 +128,16 @@ if [ $(command -v ceph) ]; then fi # 3: test OSD - CEPH_OSD_OK=$(ceph osd tree --id ${CEPH_USERNAME} | grep -i -- "host $(hostname)" 2> /dev/null) + CEPH_OSD_OK=$(ceph osd tree | grep -i -- "host $(hostname)" 2> /dev/null) if [ "${CEPH_OSD_OK}" ]; then MSG=$(process_info "ceph-osd" "${MSG}") MSG=$(service_info "6800 6801 6802" "${MSG}") printf '%b' "\n${MSG}" - - # Reset color - printf '%b' "${RESET}\n" fi + # Reset color + printf '%b' "${RESET}\n" + fi fi ### FI CEPH