diff options
| author | 2022-03-14 23:32:33 +0000 | |
|---|---|---|
| committer | 2022-03-14 23:42:37 +0000 | |
| commit | a7ec78c30bedd85f8951e8d11a4f5ad54b8013c9 (patch) | |
| tree | c70d22108788ff60f5c81af5dd42dcbe424bed12 /roles/certbot/files/rsync.sh | |
| parent | Add certbot roles (diff) | |
Force reload on all rsync operations
Update the forced command in authorized_keys to reload NGINX after
termination of the rsync session.
This ensures that after key updates complete they will be reloaded and
pushed to NGINX.
Diffstat (limited to 'roles/certbot/files/rsync.sh')
| -rw-r--r-- | roles/certbot/files/rsync.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/certbot/files/rsync.sh b/roles/certbot/files/rsync.sh new file mode 100644 index 0000000..fa9b27b --- /dev/null +++ b/roles/certbot/files/rsync.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# Start the rsync server and perform the transfer +rrsync -wo /etc/letsencrypt/live + +# Reload NGINX +systemctl reload nginx |