diff options
Diffstat (limited to 'sharepoint-status')
| -rwxr-xr-x | sharepoint-status | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sharepoint-status b/sharepoint-status new file mode 100755 index 0000000..0404959 --- /dev/null +++ b/sharepoint-status @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +set -euo pipefail + +BASE="/mnt/sharepoint" +MPS=( + "$BASE/Administration" + "$BASE/Operations" + "$BASE/SkyscaleCommerce" +) + +for mp in "${MPS[@]}"; do + if findmnt -rn "$mp" >/dev/null 2>&1; then + echo "MOUNTED $mp" + else + echo "OFF $mp" + fi +done + |
