mount: mount as 777 for max compat
for cifs, file_mode can be 666
This commit is contained in:
+2
-2
@@ -66,7 +66,7 @@ function renderMountFile(volume) {
|
||||
case 'cifs':
|
||||
type = 'cifs';
|
||||
what = `//${mountOptions.host}` + path.join('/', mountOptions.remoteDir);
|
||||
options = `username=${mountOptions.username},password=${mountOptions.password},rw,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=yellowtent,gid=yellowtent`;
|
||||
options = `username=${mountOptions.username},password=${mountOptions.password},rw,iocharset=utf8,file_mode=0666,dir_mode=0777,uid=yellowtent,gid=yellowtent`;
|
||||
break;
|
||||
case 'nfs':
|
||||
type = 'nfs';
|
||||
@@ -126,7 +126,7 @@ async function getStatus(mountType, hostPath) {
|
||||
|
||||
if (output) {
|
||||
const rlines = output.split('\n').reverse();
|
||||
const idx = rlines.findIndex(l => /^mount./.test(l) || l.includes('failed') || l.includes('error'));
|
||||
const idx = rlines.findIndex(l => /^mount./.test(l) || l.includes('failed') || l.includes('error') || l.includes('reset'));
|
||||
if (idx !== -1) message = rlines[idx];
|
||||
}
|
||||
if (!message) message = `Could not determine failure reason. ${safe.error ? safe.error.message : ''}`;
|
||||
|
||||
Reference in New Issue
Block a user