From 76345ac3b9a97613f28f3459b9fe95bb2cc14e33 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 18 Aug 2014 17:37:53 +0200 Subject: Force NFS Version 3 --- scripts/mount-store | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts/mount-store') 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 -- cgit v1.2.3-55-g7522