From 40e05690e46f2de0cb84a4cb7fd77c2c085f34ba Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Thu, 9 Feb 2017 16:15:27 +0100 Subject: [PATCH] [TRAVIS] Use travis configuration to add download.kiwix.org to known_host First, previous commit was broken cause of wrong argument order. Second, travis has a option to handle this case, let's use it. --- .travis.yml | 2 ++ kiwix-deploy.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 74b16c4..e28c63a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,3 +23,5 @@ notifications: - "chat.freenode.net#kiwix" on_success: change on_failure: always +addons: + ssh_known_hosts: download.kiwix.org diff --git a/kiwix-deploy.py b/kiwix-deploy.py index be5b20d..a4b2ffc 100755 --- a/kiwix-deploy.py +++ b/kiwix-deploy.py @@ -53,7 +53,7 @@ class Deployer: def deploy(self, *files): if not files: return - command = "scp -v -p -i -o StrictHostKeyChecking=no {id_file} {files_list} {host_addr}".format( + command = "scp -v -p -i {id_file} {files_list} {host_addr}".format( id_file=self.options.ssh_private_key, files_list=' '.join("'{}'".format(f) for f in files), host_addr="{}:{}".format(self.options.server, self.options.base_path)