forked from evolix/ansible-roles
certbot: sync_remote excludes itself
This commit is contained in:
parent
2ed1dac16b
commit
51462c724c
|
@ -16,6 +16,8 @@ The **patch** part changes incrementally at each release.
|
|||
|
||||
### Fixed
|
||||
|
||||
* certbot: sync_remote excludes itself
|
||||
|
||||
### Removed
|
||||
|
||||
### Security
|
||||
|
|
|
@ -40,7 +40,7 @@ main() {
|
|||
rsync --archive --copy-links --delete "${RENEWED_LINEAGE}/" "${remote_host}:${remote_lineage}/" \
|
||||
|| error "Couldn't sync certificate on ${server}"
|
||||
|
||||
rsync --archive --copy-links --delete --exclude $0 --delete-excluded "${hooks_dir}/" "${remote_host}:${remote_dir}/hooks/" \
|
||||
rsync --archive --copy-links --delete --exclude "$(basename "$0")" --delete-excluded "${hooks_dir}/" "${remote_host}:${remote_dir}/hooks/" \
|
||||
|| error "Couldn't sync hooks on ${server}"
|
||||
|
||||
# shellcheck disable=SC2029
|
||||
|
|
Loading…
Reference in a new issue