|
|
|
@ -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(); |
|
|
|
} |
|
|
|
} |
|
|
|
|