hardcode mountPoint in the backend instead

This commit is contained in:
Girish Ramakrishnan
2021-09-29 22:35:13 -07:00
parent 6c580646f3
commit 6a3459e514
2 changed files with 0 additions and 4 deletions
-2
View File
@@ -270,7 +270,6 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
backupConfig.mountOptions = {};
if (backupConfig.provider === 'cifs' || backupConfig.provider === 'sshfs' || backupConfig.provider === 'nfs') {
backupConfig.mountPoint = '/mnt/cloudronbackup'; // harcoded for ease of use
backupConfig.mountOptions.host = $scope.mountOptions.host;
backupConfig.mountOptions.remoteDir = $scope.mountOptions.remoteDir;
@@ -283,7 +282,6 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
backupConfig.mountOptions.privateKey = $scope.mountOptions.privateKey;
}
} else if (backupConfig.provider === 'ext4') {
backupConfig.mountPoint = '/mnt/cloudronbackup'; // harcoded for ease of use
backupConfig.mountOptions.diskPath = $scope.diskPath;
} else if (backupConfig.provider === 'mountpoint') {
backupConfig.mountPoint = $scope.mountPoint;