Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-12-04 17:45:30 +0300
committernachoparker <nacho@ownyourbits.com>2017-12-04 17:45:56 +0300
commit030bbedf7575bb8545f297f05a14c306d4ec99d2 (patch)
tree795440b2820de07e3442cde590f97ac607f3c941
parent29da1b5e86f9d90569d0b9943220ad1306ccda1f (diff)
nc-automount: check for USBdrive labeled drive casev0.41.2
-rw-r--r--changelog.md4
-rw-r--r--etc/nextcloudpi-config.d/nc-automount.sh4
2 files changed, 5 insertions, 3 deletions
diff --git a/changelog.md b/changelog.md
index 475739c3..977f60b3 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,7 @@
-[v0.41.1](https://github.com/nextcloud/nextcloudpi/commit/d472c6c) (2017-12-04) nc-info: warn of long operation
+[v0.41.2](https://github.com/nextcloud/nextcloudpi/commit/f4dd242) (2017-12-04) nc-automount: check for USBdrive labeled drive case
+
+[v0.41.1 ](https://github.com/nextcloud/nextcloudpi/commit/9ef8bc1) (2017-12-04) nc-info: warn of long operation
[v0.41.0](https://github.com/nextcloud/nextcloudpi/commit/d191176) (2017-12-04) updated to NC12.0.4
diff --git a/etc/nextcloudpi-config.d/nc-automount.sh b/etc/nextcloudpi-config.d/nc-automount.sh
index 4ae711ab..1d9cbed4 100644
--- a/etc/nextcloudpi-config.d/nc-automount.sh
+++ b/etc/nextcloudpi-config.d/nc-automount.sh
@@ -74,9 +74,9 @@ ls -d /media/* &>/dev/null && {
i=0
for d in $( ls -d /media/* 2>/dev/null ); do
if [ $i -eq 0 ]; then
- mountpoint -q "$d" && ln -sT "$d" /media/USBdrive
+ [[ -e /media/USBdrive ]] || mountpoint -q "$d" && ln -sT "$d" /media/USBdrive
else
- mountpoint -q "$d" && ln -sT "$d" /media/USBdrive$i
+ [[ -e /media/USBdrive$i ]] || mountpoint -q "$d" && ln -sT "$d" /media/USBdrive$i
fi
i=$(( i + 1 ))
done