This commit is contained in:
Girish Ramakrishnan
2021-07-10 11:13:12 -07:00
parent eafd72b4e7
commit 3659210c7b

View File

@@ -100,7 +100,7 @@ function hasChownSupportSync(apiConfig) {
case PROVIDER_SSHFS:
// sshfs can be mounted as root or normal user. when mounted as root, we have to chown since we remove backups as the yellowtent user
// when mounted as non-root user, files are created as yellowtent user but they are still owned by the non-root user (thus del also works)
return apiConfig.mountOptions.username === 'root';
return apiConfig.mountOptions.user === 'root';
case PROVIDER_CIFS:
return true;
case PROVIDER_MOUNTPOINT: