[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:
parent
d3d6e54d3f
commit
40e05690e4
|
@ -23,3 +23,5 @@ notifications:
|
||||||
- "chat.freenode.net#kiwix"
|
- "chat.freenode.net#kiwix"
|
||||||
on_success: change
|
on_success: change
|
||||||
on_failure: always
|
on_failure: always
|
||||||
|
addons:
|
||||||
|
ssh_known_hosts: download.kiwix.org
|
||||||
|
|
|
@ -53,7 +53,7 @@ class Deployer:
|
||||||
def deploy(self, *files):
|
def deploy(self, *files):
|
||||||
if not files:
|
if not files:
|
||||||
return
|
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,
|
id_file=self.options.ssh_private_key,
|
||||||
files_list=' '.join("'{}'".format(f) for f in files),
|
files_list=' '.join("'{}'".format(f) for f in files),
|
||||||
host_addr="{}:{}".format(self.options.server, self.options.base_path)
|
host_addr="{}:{}".format(self.options.server, self.options.base_path)
|
||||||
|
|
Loading…
Reference in New Issue