diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-03-08 08:16:50 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-03-08 08:16:50 +0100 |
commit | 1f0c07b41972c83ab890bde61aa6eb87b770043e (patch) | |
tree | d1c796000d45385760b80900804f6d338ecf2957 | |
parent | 607886484e6502287d529ce7b8ea90e608bcb6fe (diff) | |
download | tyilnet-1f0c07b41972c83ab890bde61aa6eb87b770043e.tar.gz tyilnet-1f0c07b41972c83ab890bde61aa6eb87b770043e.tar.bz2 |
Rename file_rhash to dir_hash
-rw-r--r-- | playbooks.d/vpn-tinc/playbook.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/playbooks.d/vpn-tinc/playbook.bash b/playbooks.d/vpn-tinc/playbook.bash index 0112072..9810c09 100644 --- a/playbooks.d/vpn-tinc/playbook.bash +++ b/playbooks.d/vpn-tinc/playbook.bash @@ -100,7 +100,7 @@ playbook_sync() local dir="$(config "fs.etcdir")/tinc/tyilnet" local host local name="$(tr "." "_" <<< "${BASHTARD_PLATFORM[fqdn]}")" - local rhash="$(file_rhash "$dir/hosts")" + local dhash="$(dir_hash "$dir/hosts")" info "$BASHTARD_PLAYBOOK" "Regenerating tinc hosts" rm -fr -- "$dir/hosts" @@ -116,7 +116,7 @@ playbook_sync() done [[ "$BASHTARD_COMMAND" == "add" ]] && return - [[ "$rhash" == "$(file_rhash "$dir/hosts")" ]] && return + [[ "$dhash" == "$(dir_hash "$dir/hosts")" ]] && return info "$BASHTARD_PLAYBOOK" "Reloading service" |