From 47d30b3c5b10812010c25ced00e4b418c37f8aa3 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 28 Oct 2023 12:09:57 +0200 Subject: backup implementation, enhancements and fixes --- Applications/NextCloud/bin/fstab | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Applications/NextCloud/bin') 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}" -- cgit v1.2.3