From 65e9eb19f0c8fb7ec7b81653a63c3de9f970e2d2 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 5 Aug 2011 14:21:39 +0200 Subject: [PATCH] allow password for ssh --- apps/archive/settings.py | 5 +++++ apps/archive/tasks.py | 1 + 2 files changed, 6 insertions(+) diff --git a/apps/archive/settings.py b/apps/archive/settings.py index 9c05b70..3c85f84 100755 --- a/apps/archive/settings.py +++ b/apps/archive/settings.py @@ -52,6 +52,11 @@ try: except AttributeError: UPLOAD_USER = 'username' +try: + UPLOAD_PASSWORD = settings.ARCHIVE_UPLOAD_PASSWORD +except AttributeError: + UPLOAD_PASSWORD = None + try: UPLOAD_PATH = settings.ARCHIVE_UPLOAD_PATH except AttributeError: diff --git a/apps/archive/tasks.py b/apps/archive/tasks.py index d3ec740..8d8df5e 100755 --- a/apps/archive/tasks.py +++ b/apps/archive/tasks.py @@ -24,6 +24,7 @@ from archive.utils import ExistingFile api.env.host_string = UPLOAD_HOST api.env.user = UPLOAD_USER +api.env.password = UPLOAD_PASSWORD class AudioFormatTask(Task): abstract = True -- 2.20.1