From 06b70f765d0c0c72f6ec0897a2ccfe9822a20863 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Thu, 4 Jun 2020 16:39:04 +0300 Subject: [PATCH] Add user_dir to ssl command --- lib/workers/provision_ssl_certificates.ex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/workers/provision_ssl_certificates.ex b/lib/workers/provision_ssl_certificates.ex index 6027b28aa..22a712086 100644 --- a/lib/workers/provision_ssl_certificates.ex +++ b/lib/workers/provision_ssl_certificates.ex @@ -5,7 +5,12 @@ defmodule Plausible.Workers.ProvisionSslCertificates do @impl Oban.Worker def perform(_args, _job, ssh \\ SSHEx) do - {:ok, conn} = ssh.connect(ip: to_charlist(@custom_domain_server[:ip]), user: to_charlist(@custom_domain_server[:user])) + IO.inspect(@custom_domain_server) + {:ok, conn} = ssh.connect( + ip: to_charlist(@custom_domain_server[:ip]), + user: to_charlist(@custom_domain_server[:user]), + user_dir: '/root/.ssh' + ) recent_custom_domains = Repo.all( from cd in Plausible.Site.CustomDomain,