Sync SSH Keys on create.

master
Blog Manager Robot 3 years ago
parent eac8b2f945
commit 6f4a0fd6ce
  1. 7
      Web/lib/MJB/Web/Task/CreateSSLCert.pm

@ -8,9 +8,14 @@ sub run ( $job, $blog_id ) {
my $blog = $job->app->db->blog( $blog_id ); my $blog = $job->app->db->blog( $blog_id );
# Get the SSL Certificate # Get the SSL Certificate
my $result = $job->system_command( [ my $result_fetch = $job->system_command( [
qw(sudo certbot certonly --standalone -d), $blog->domain->name, qw(--agree-tos --register-unsafely-without-email) qw(sudo certbot certonly --standalone -d), $blog->domain->name, qw(--agree-tos --register-unsafely-without-email)
]); ]);
# Push the SSL Certs to all hosts
my $result_sync = $job->system_command( [
qw(sudo letsencrypt-cert-push)
]);
$job->finish(); $job->finish();
} }

Loading…
Cancel
Save