Commit 0981f8e6 authored by ibuler's avatar ibuler

[Update] 支持可以设置sftp home目录

parent ee8a1719
...@@ -344,7 +344,7 @@ defaults = { ...@@ -344,7 +344,7 @@ defaults = {
'LANGUAGE_CODE': 'zh', 'LANGUAGE_CODE': 'zh',
'SECURITY_MAX_IDLE_TIME': 60, 'SECURITY_MAX_IDLE_TIME': 60,
'ASSET_LIST_PAGE_SIZE': 'auto', 'ASSET_LIST_PAGE_SIZE': 'auto',
'SFTP_HOME': 'tmp', 'SFTP_ROOT': 'tmp',
} }
......
...@@ -45,7 +45,7 @@ def convert_error(func): ...@@ -45,7 +45,7 @@ def convert_error(func):
class SFTPServer(paramiko.SFTPServerInterface): class SFTPServer(paramiko.SFTPServerInterface):
root = config.SFTP_HOME # Home or /tmp or other path, must exist on all server root = config.SFTP_ROOT # Home or /tmp or other path, must exist on all server
def __init__(self, server, **kwargs): def __init__(self, server, **kwargs):
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment