the echo commands (PA_Details, PA_FireActions) must be on a new line ... and for some unknown reason, the script was not being interpreted that way .... so we had to manually had a return / new line using rn

GLUSTERD=$(systemctl is-active glusterd)

displaying details to to console

echo -e "rnPA_Details("Testing whether glusterd is active or not via ssh: ${GLUSTERD}")"

if not active then in problem state

if [ ${GLUSTERD} != "active" ]; then echo -e "rnPA_FireActions(true)" fi

asked 03 Oct '23, 08:41

amallory's gravatar image

amallory
111
accept rate: 0%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×16
×6
×4

Asked: 03 Oct '23, 08:41

Seen: 583 times

Last updated: 03 Oct '23, 08:41