From b1710ab18f3bc753982bb02f1aa9a0f2198046a8 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 14 Jan 2020 09:53:07 +0100 Subject: rotate-keys: fix typo in variable name --- rotate-keys.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rotate-keys.in b/rotate-keys.in index dc17cac..1c5bb4e 100644 --- a/rotate-keys.in +++ b/rotate-keys.in @@ -91,12 +91,12 @@ printf '%s\n' "${hosts}" \ && [ -f "${key_dir}/${host}.chain.new" ]; then continue fi - if [ -f "${key_dir}/${host_key_file}.key" ] \ - && [ "$(stat -c%Y "${key_dir}/${host_key_file}.key")" -ge "$(($(date +%s)-60*60*24*key_min_duration))" ] \ - && [ -f "${key_dir}/${host_key_file}.crt" ] \ - && [ "$(stat -c%Y "${key_dir}/${host_key_file}.crt")" -ge "$(($(date +%s)-60*60*24*key_min_duration))" ] \ - && [ -f "${key_dir}/${host_key_file}.chain" ] \ - && [ "$(stat -c%Y "${key_dir}/${host_key_file}.chain")" -ge "$(($(date +%s)-60*60*24*key_min_duration))" ]; then + if [ -f "${key_dir}/${host}.key" ] \ + && [ "$(stat -c%Y "${key_dir}/${host}.key")" -ge "$(($(date +%s)-60*60*24*key_min_duration))" ] \ + && [ -f "${key_dir}/${host}.crt" ] \ + && [ "$(stat -c%Y "${key_dir}/${host}.crt")" -ge "$(($(date +%s)-60*60*24*key_min_duration))" ] \ + && [ -f "${key_dir}/${host}.chain" ] \ + && [ "$(stat -c%Y "${key_dir}/${host}.chain")" -ge "$(($(date +%s)-60*60*24*key_min_duration))" ]; then continue fi -- cgit v1.2.3-70-g09d2