[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.
This commit is contained in:
Matthieu Gautier 2017-02-09 16:15:27 +01:00
parent d3d6e54d3f
commit 40e05690e4
2 changed files with 3 additions and 1 deletions

View File

@ -23,3 +23,5 @@ notifications:
- "chat.freenode.net#kiwix"
on_success: change
on_failure: always
addons:
ssh_known_hosts: download.kiwix.org

View File

@ -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)