Merge pull request #244 from vatesfr/olivierlambert-nfs-fix

Add v3 parameter for NFS. Fix vatesfr/xo-web/issues/771
This commit is contained in:
Julien Fontanet 2016-02-26 10:12:24 +01:00
commit b777b7432a

View File

@ -40,7 +40,7 @@ export default class NfsHandler extends LocalHandler {
async _mount (remote) {
await fs.ensureDir(remote.path)
return execa('mount', ['-t', 'nfs', `${remote.host}:${remote.share}`, remote.path])
return execa('mount', ['-t', 'nfs', '-o', 'vers=3', `${remote.host}:${remote.share}`, remote.path])
}
async _sync () {