Fix find -exec documentation for docker certificate renewal

This commit is contained in:
Alecks Gates 2023-06-03 15:01:38 -05:00 committed by John Livingston
parent 1c7932cee6
commit 083b075445

View File

@ -268,7 +268,7 @@ Modify your `docker-compose.yml` file, changing the `entrypoint` line under the
This is the same as the above, but to be automatically executed after every certificate renewal. This is the same as the above, but to be automatically executed after every certificate renewal.
```text ```text
entrypoint: /bin/sh -c "trap exit TERM; while :; do certbot renew --webroot -w /var/www/certbot; chown -R root:999 /etc/letsencrypt/live; chmod 750 /etc/letsencrypt/live; chown -R root:999 /etc/letsencrypt/archive; chmod 750 /etc/letsencrypt/archive; find /etc/letsencrypt/ -name 'privkey*' -exec chmod 0640 {} \; sleep 12h & wait $${!}; done;" entrypoint: /bin/sh -c "trap exit TERM; while :; do certbot renew --webroot -w /var/www/certbot; chown -R root:999 /etc/letsencrypt/live; chmod 750 /etc/letsencrypt/live; chown -R root:999 /etc/letsencrypt/archive; chmod 750 /etc/letsencrypt/archive; find /etc/letsencrypt/ -name 'privkey*' -exec chmod 0640 {} +; sleep 12h & wait $${!}; done;"
``` ```
Continuing to modify `docker-compose.yml`, add the certbot certificate volume into the peertube container. Continuing to modify `docker-compose.yml`, add the certbot certificate volume into the peertube container.