From: Radek Czajka Date: Fri, 5 Aug 2011 12:21:39 +0000 (+0200) Subject: allow password for ssh X-Git-Url: https://git.mdrn.pl/audio.git/commitdiff_plain/65e9eb19f0c8fb7ec7b81653a63c3de9f970e2d2?hp=5af32283874d53570956a2ecdeb0f07a65f0471c allow password for ssh --- 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