summaryrefslogtreecommitdiff
path: root/Applications/NextCloud/bin/fstab
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-10-28 12:09:57 +0200
committerDaniel Weipert <code@drogueronin.de>2023-10-28 12:09:57 +0200
commit47d30b3c5b10812010c25ced00e4b418c37f8aa3 (patch)
tree649cb023e4109058261ae40b0d991aed24c0e6aa /Applications/NextCloud/bin/fstab
parentb9b21873c0d7ba1ab6dd5cc70d16e69bcd57fb27 (diff)
backup implementation, enhancements and fixesHEADmain
Diffstat (limited to 'Applications/NextCloud/bin/fstab')
-rw-r--r--Applications/NextCloud/bin/fstab8
1 files changed, 4 insertions, 4 deletions
diff --git a/Applications/NextCloud/bin/fstab b/Applications/NextCloud/bin/fstab
index a804da2..fe47b94 100644
--- a/Applications/NextCloud/bin/fstab
+++ b/Applications/NextCloud/bin/fstab
@@ -2,11 +2,11 @@
source .env
-if grep -q "${EXTERNAL_STORAGE_PATH_HOST}"; then
+if grep -q "${EXTERNAL_STORAGE_MOUNT_PATH}"; 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
+echo "${EXTERNAL_STORAGE_MOUNT_PARTITION} ${EXTERNAL_STORAGE_MOUNT_PATH} ${EXTERNAL_STORAGE_MOUNT_FS_TYPE} auto,nofail,rw,user 0 0" >> "/etc/fstab"
+mkdir -p "${EXTERNAL_STORAGE_MOUNT_PATH}"
+mount -v "${EXTERNAL_STORAGE_MOUNT_PATH}"