Use absolute path to `service` while renewing letsencrypt ssl cert.
This commit is contained in:
parent
0d57ed9e55
commit
1b401035c1
|
@ -184,7 +184,7 @@ A sample cron job that runs at 3:01AM everyday, and restart
|
|||
postfix/nginx/dovecot after renewed:
|
||||
|
||||
```
|
||||
1 3 * * * certbot renew --post-hook 'service postfix restart; service nginx restart; service dovecot restart'
|
||||
1 3 * * * certbot renew --post-hook '/usr/sbin/service postfix restart; /usr/sbin/service nginx restart; /usr/sbin/service dovecot restart'
|
||||
```
|
||||
|
||||
## Use Let's Encrypt cert
|
||||
|
@ -231,7 +231,7 @@ linked to file under `/etc/letsencrypt/archive/`, so we need to update the
|
|||
Replace `<domain>` by the real domain name.
|
||||
|
||||
```
|
||||
1 3 * * * certbot renew --post-hook 'ln -sf /etc/letsencrypt/live/<domain>/privkey.pem /opt/iredmail/ssl/key.pem; service postfix restart; service nginx restart; service dovecot restart'
|
||||
1 3 * * * certbot renew --post-hook 'ln -sf /etc/letsencrypt/live/<domain>/privkey.pem /opt/iredmail/ssl/key.pem; /usr/sbin/service postfix restart; /usr/sbin/service nginx restart; /usr/sbin/service dovecot restart'
|
||||
```
|
||||
|
||||
#### For servers deployed with the classical downloadable iRedMail installer
|
||||
|
|
|
@ -215,7 +215,7 @@ existing ssl certs which will expire in less than 30 days. We need its
|
|||
<code>--post-hook</code> argument to restart network services to load renewed ssl certs.</p>
|
||||
<p>A sample cron job that runs at 3:01AM everyday, and restart
|
||||
postfix/nginx/dovecot after renewed:</p>
|
||||
<pre><code>1 3 * * * certbot renew --post-hook 'service postfix restart; service nginx restart; service dovecot restart'
|
||||
<pre><code>1 3 * * * certbot renew --post-hook '/usr/sbin/service postfix restart; /usr/sbin/service nginx restart; /usr/sbin/service dovecot restart'
|
||||
</code></pre>
|
||||
|
||||
<h2 id="use-lets-encrypt-cert">Use Let's Encrypt cert</h2>
|
||||
|
@ -254,7 +254,7 @@ linked to file under <code>/etc/letsencrypt/archive/</code>, so we need to updat
|
|||
<p class="admonition-title">Attention</p>
|
||||
<p>Replace <code><domain></code> by the real domain name.</p>
|
||||
</div>
|
||||
<pre><code>1 3 * * * certbot renew --post-hook 'ln -sf /etc/letsencrypt/live/<domain>/privkey.pem /opt/iredmail/ssl/key.pem; service postfix restart; service nginx restart; service dovecot restart'
|
||||
<pre><code>1 3 * * * certbot renew --post-hook 'ln -sf /etc/letsencrypt/live/<domain>/privkey.pem /opt/iredmail/ssl/key.pem; /usr/sbin/service postfix restart; /usr/sbin/service nginx restart; /usr/sbin/service dovecot restart'
|
||||
</code></pre>
|
||||
|
||||
<h4 id="for-servers-deployed-with-the-classical-downloadable-iredmail-installer">For servers deployed with the classical downloadable iRedMail installer</h4>
|
||||
|
|
Loading…
Reference in New Issue