mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 07:22:29 +03:00
Make stats retrieval more configurable
This commit is contained in:
parent
27edbd56a7
commit
b454ea3c6f
3 changed files with 10 additions and 2 deletions
|
@ -91,8 +91,8 @@ def main():
|
|||
logging.info('Retrieving logs')
|
||||
ssh = paramiko.SSHClient()
|
||||
ssh.load_system_host_keys()
|
||||
ssh.connect('f-droid.org', username='fdroid', timeout=10,
|
||||
key_filename=config['webserver_keyfile'])
|
||||
ssh.connect(config['stats_server'], username=config['stats_user'],
|
||||
timeout=10, key_filename=config['webserver_keyfile'])
|
||||
ftp = ssh.open_sftp()
|
||||
ftp.get_channel().settimeout(60)
|
||||
logging.info("...connected")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue