|
|
|
@ -17,8 +17,12 @@ sub run ( $job ) { |
|
|
|
$job->system_command( [ 'sudo', 'certbot', 'renew' ] ); |
|
|
|
$job->system_command( [ 'sudo', 'certbot', 'renew' ] ); |
|
|
|
$job->note( is_renew_done => 1 ); |
|
|
|
$job->note( is_renew_done => 1 ); |
|
|
|
|
|
|
|
|
|
|
|
# Push the SSL Certificates |
|
|
|
# Push the SSL Certs to all hosts |
|
|
|
$job->system_command( [ 'sudo', 'letsencrypt-cert-push' ] ); |
|
|
|
my $id = $job->app->minion->enqueue( 'sync_ssl_certs', [ ], { |
|
|
|
|
|
|
|
queue => 'certbot', |
|
|
|
|
|
|
|
notes => { '_bid_0' => 1 }, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
$job->app->db->admin_jobs->create({ minion_job_id => $id }); |
|
|
|
|
|
|
|
|
|
|
|
$job->note( is_sync_done => 1 ); |
|
|
|
$job->note( is_sync_done => 1 ); |
|
|
|
|
|
|
|
|
|
|
|
|