summaryrefslogtreecommitdiff
path: root/Applications/NextCloud/bin/fstab
blob: a804da2e35ebe6c20f59632f72d085fd5b2dac5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env zsh

source .env

if grep -q "${EXTERNAL_STORAGE_PATH_HOST}"; then
  echo "Already mounted."
  exit
fi

echo "${EXTERNAL_STORAGE_PARTITION} ${EXTERNAL_STORAGE_PATH_HOST} ${EXTERNAL_STORAGE_FS_TYPE} rw 0 1" >> "/etc/fstab"
mkdir -p "${EXTERNAL_STORAGE_PATH_HOST}"
mount -a -v