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

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorszaimen <szaimen@e.mail.de>2020-08-31 01:20:51 +0300
committerGitHub <noreply@github.com>2020-08-31 01:20:51 +0300
commitbeb3de1f603e2b66006a331562c15b48977c686d (patch)
treebed64ea7dd4911f565f9e7ed5f676a1707ed70e9 /apps/smbmount.sh
parent1b657a949b9f69c51315a534d799e3979338c2c5 (diff)
add inform-box and fix for dfs-shares (#1393)
Diffstat (limited to 'apps/smbmount.sh')
-rw-r--r--apps/smbmount.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/smbmount.sh b/apps/smbmount.sh
index b76ef5c5..050c3f97 100644
--- a/apps/smbmount.sh
+++ b/apps/smbmount.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# T&M Hansson IT AB © - 2020, https://www.hanssonit.se/
-# Copyright © 2020 Simon Lindner
+# Copyright © 2020 Simon Lindner (https://github.com/szaimen)
# shellcheck disable=2034,2059
true
@@ -33,6 +33,16 @@ then
exit
fi
+# Inform the user
+msg_box "This script automates mounting SMB-shares locally in your system and adds them automatically as external storage to your Nextcloud."
+if [[ "no" == $(ask_yes_or_no "Do you want to continue?") ]]
+then
+ exit 1
+fi
+
+# Needed for DFS-shares to work
+install_if_not keyutils
+
# Install cifs-utils
install_if_not cifs-utils