add sshfs bits to restore and backup UI
This commit is contained in:
+8
-1
@@ -47,7 +47,10 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
|
||||
remoteDir: '',
|
||||
username: '',
|
||||
password: '',
|
||||
diskPath: ''
|
||||
diskPath: '',
|
||||
user: '',
|
||||
port: 22,
|
||||
privateKey: ''
|
||||
};
|
||||
|
||||
$scope.sysinfo = {
|
||||
@@ -261,6 +264,10 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
|
||||
if (backupConfig.provider === 'cifs') {
|
||||
backupConfig.mountOptions.username = $scope.mountOptions.username;
|
||||
backupConfig.mountOptions.password = $scope.mountOptions.password;
|
||||
} else if (backupConfig.provider === 'sshfs') {
|
||||
backupConfig.mountOptions.user = $scope.mountOptions.user;
|
||||
backupConfig.mountOptions.port = $scope.mountOptions.port;
|
||||
backupConfig.mountOptions.privateKey = $scope.mountOptions.privateKey;
|
||||
}
|
||||
} else if (backupConfig.provider === 'ext4') {
|
||||
backupConfig.mountOptions.diskPath = $scope.diskPath;
|
||||
|
||||
Reference in New Issue
Block a user