diff --git a/dynmotd_scripts/05ceph b/dynmotd_scripts/05ceph index 411aa41..a490642 100755 --- a/dynmotd_scripts/05ceph +++ b/dynmotd_scripts/05ceph @@ -64,7 +64,7 @@ service_info() { if [ $(command -v ceph) ]; then # If a keyring file exists if [ -f /etc/ceph/*.keyring ]; then - printf '%b' "\n${MAGENTA}++++++++++++++++++++++++ ${WHITE}Ceph${RESET} ${MAGENTA}:++++++++++++++++++++++++${RESET}" + printf '%b' "${MAGENTA}++++++++++++++++++++++++ ${WHITE}Ceph${RESET} ${MAGENTA}:++++++++++++++++++++++++${RESET}" for keyring in "$(find /etc/ceph -type f -name *.keyring)"; do CEPH_USERNAME=$(grep client ${keyring} | sed 's/^\[client.\(.*\)\]/\1/') @@ -97,7 +97,7 @@ if [ $(command -v ceph) ]; then fi # Display end message for this keyring - printf '%b' "\n${MAGENTA}+++++ ${WHITEB}END - ${keyring}${MAGENTA} +++++${RESET}" + printf '%b' "\n${MAGENTA}++++++ ${WHITEB}END - ${keyring}${MAGENTA} ++++++${RESET}" # Reset color printf '%b' "${RESET}\n" @@ -105,7 +105,7 @@ if [ $(command -v ceph) ]; then # Else use default elif [ -f /etc/ceph/ceph.conf ]; then - printf '%b' "\n${MAGENTA}++++++++++++++++++++++++ ${WHITE}Ceph${RESET} ${MAGENTA}:++++++++++++++++++++++++${RESET}" + printf '%b' "${MAGENTA}++++++++++++++++++++++++ ${WHITE}Ceph${RESET} ${MAGENTA}:++++++++++++++++++++++++${RESET}" # 1: test health CEPH_HEALTH=$(ceph health)