summaryrefslogtreecommitdiff
path: root/Applications/NextCloud/bin
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-09-18 15:56:31 +0200
committerDaniel Weipert <code@drogueronin.de>2023-09-18 15:57:46 +0200
commitb18e29b389792267269c77db711b54d38e6b9d59 (patch)
tree973ad914da9105cc526df1690cc99dc038fea5e4 /Applications/NextCloud/bin
initial commit
Diffstat (limited to 'Applications/NextCloud/bin')
-rw-r--r--Applications/NextCloud/bin/fstab12
1 files changed, 12 insertions, 0 deletions
diff --git a/Applications/NextCloud/bin/fstab b/Applications/NextCloud/bin/fstab
new file mode 100644
index 0000000..a804da2
--- /dev/null
+++ b/Applications/NextCloud/bin/fstab
@@ -0,0 +1,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