Skip to content

Commit 1699e7e

Browse files
committed
Suggested edits
1 parent 3214e9f commit 1699e7e

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

user/enterprise/platform-tips.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@ $ replicatedctl app start
255255

256256
### Automate renewal of your Let's Encrypt SSL Certificate with a cron job
257257

258-
Create a file such as `/home/ubuntu/renew-certs.sh` with the following in it:
258+
1. Create `/home/ubuntu/renew-certs.sh` containing the following script:
259259

260-
```
260+
```sh
261261
#!/bin/bash
262262

263263
set -u
@@ -282,25 +282,28 @@ replicatedctl app stop
282282
sudo certbot renew
283283
replicatedctl app start
284284
```
285-
Set the executable permissions you'll need by doing `chmod +x /home/ubuntu/renew-certs.sh`.
285+
{: data-file="./home/ubuntu/renew-certs.sh"}
286286

287-
You'll then want to create a cronjob by using your favorite text editor, for example:
287+
2. Make the script executable:
288288

289-
```
290-
nano /etc/crontab
291-
```
289+
```sh
290+
$ chmod +x /home/ubuntu/renew-certs.sh
291+
```
292292

293-
Then append the below to the file that you've just opened in your text editor. Make sure to adjust the configuration with values that apply to the certificate you are creating.
293+
3. Create a cronjob by editing `/etc/crontab` and appending the following:
294294

295-
```
296-
# Renews certs at 2am on the 1st of February, May, August, and November.
297-
# Please change the configuration that applies to the certificate you are creating.
298-
0 2 1 2,5,8,11 * /home/ubuntu/renew-certs.sh
299-
```
300295

301-
**Note: Be aware that this process will also introduce downtime.**
296+
```
297+
# Renews certs at 2am on the 1st of February, May, August, and November.
298+
# Please change the configuration that applies to the certificate you are creating.
299+
0 2 1 2,5,8,11 * /home/ubuntu/renew-certs.sh
300+
```
301+
302+
Make sure to adjust the configuration with values that apply to the certificate you are creating.
303+
304+
> This process will introduce a small amount of downtime while the certificates are renewed.
302305

303-
Make sure to plan to communicate with your users every time this downtime will happen so they are aware that their builds will temporarily be stopped until the certificate gets renewed and your Travis CI Enterprise installation comes back online.
306+
Make sure to communicate with your users before each renewal so they are aware that their builds will temporarily be stopped until the certificate gets renewed.
304307

305308
## Uninstall Travis CI Enterprise
306309

0 commit comments

Comments
 (0)