diff options
author | Simon Rettberg | 2014-08-18 17:37:53 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-08-18 17:37:53 +0200 |
commit | 76345ac3b9a97613f28f3459b9fe95bb2cc14e33 (patch) | |
tree | 8ba0fa8479988a0fa4eb19105d3448aae725a94f /scripts | |
parent | New Tasks (diff) | |
download | tmlite-bwlp-76345ac3b9a97613f28f3459b9fe95bb2cc14e33.tar.gz tmlite-bwlp-76345ac3b9a97613f28f3459b9fe95bb2cc14e33.tar.xz tmlite-bwlp-76345ac3b9a97613f28f3459b9fe95bb2cc14e33.zip |
Force NFS Version 3
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mount-store | 8 |
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 |