aboutsummaryrefslogtreecommitdiff
path: root/sharepoint-status
blob: 04049599246e8adc7dbd04287f55554339cf4b2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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