summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSimon Rettberg2014-08-18 17:37:53 +0200
committerSimon Rettberg2014-08-18 17:37:53 +0200
commit76345ac3b9a97613f28f3459b9fe95bb2cc14e33 (patch)
tree8ba0fa8479988a0fa4eb19105d3448aae725a94f /scripts
parentNew Tasks (diff)
downloadtmlite-bwlp-76345ac3b9a97613f28f3459b9fe95bb2cc14e33.tar.gz
tmlite-bwlp-76345ac3b9a97613f28f3459b9fe95bb2cc14e33.tar.xz
tmlite-bwlp-76345ac3b9a97613f28f3459b9fe95bb2cc14e33.zip
Force NFS Version 3
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mount-store8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/mount-store b/scripts/mount-store
index 098dba6..4251926 100755
--- a/scripts/mount-store
+++ b/scripts/mount-store
@@ -60,7 +60,7 @@ touch "${DEST}/.notmounted"
if grep -E -q '^[^/].+:.+' <<<$SOURCE; then
# seems to be NFS
- mount -t nfs -o rw,async,nolock,fg,ac,retry=1,timeo=600 "$SOURCE" "$DEST"
+ mount -t nfs -o rw,async,nolock,vers=3,fg,ac,retry=1,timeo=600 "$SOURCE" "$DEST"
RET=$?
elif grep -E -q '^//' <<<$SOURCE; then
# seens to be SMB
@@ -75,7 +75,11 @@ else
fi
if [ "$RET" == "0" ]; then
- chmod -R ug+rw "$DEST"
+ chgrp -R images "$DEST" 2>/dev/null
+ chmod -R ug+rw "$DEST" 2>/dev/null
+ for DIR in $(find "$DEST" -type d); do
+ chmod ug+x "$DIR" 2>/dev/null
+ done
fi
exit $RET