diff options
-rwxr-xr-x | print-status-html | 8 | ||||
-rw-r--r-- | print-status.conf | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/print-status-html b/print-status-html index d4c30c6..107647c 100755 --- a/print-status-html +++ b/print-status-html @@ -97,11 +97,13 @@ EOF s/$/<br>/ ' - cat <<EOF + if command -v ssacli >/dev/null 2>&1; then + + cat <<EOF <h1>Hardware RAIDs</h1> EOF - ssacli ctrl slot=1 ld all show \ + ssacli ctrl slot=1 ld all show \ | sed ' s/^\s\+// s/\s\+$// @@ -117,6 +119,8 @@ EOF s/$/<br>/ ' + fi + cat <<EOF <h1>Backups</h1> <table> diff --git a/print-status.conf b/print-status.conf new file mode 100644 index 0000000..5560886 --- /dev/null +++ b/print-status.conf @@ -0,0 +1,3 @@ +#!/bin/bash + +http_dir='/srv/http/tmp' |