FIX: unable to import private themes due to key checking

This commit is contained in:
Sam
2018-04-03 16:11:03 +10:00
parent 54819d72c9
commit f1ef46d7b7

View File

@@ -78,7 +78,7 @@ class ThemeStore::GitImporter
end end
Discourse::Utils.execute_command({ Discourse::Utils.execute_command({
'GIT_SSH_COMMAND' => "ssh -i #{ssh_folder}/id_rsa" 'GIT_SSH_COMMAND' => "ssh -i #{ssh_folder}/id_rsa -o StrictHostKeyChecking=no"
}, "git", "clone", @url, @temp_folder) }, "git", "clone", @url, @temp_folder)
ensure ensure
FileUtils.rm_rf ssh_folder FileUtils.rm_rf ssh_folder