From b18e29b389792267269c77db711b54d38e6b9d59 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 18 Sep 2023 15:56:31 +0200 Subject: initial commit --- Applications/NextCloud/bin/fstab | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Applications/NextCloud/bin/fstab (limited to 'Applications/NextCloud/bin/fstab') 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 -- cgit v1.2.3