diff options
-rw-r--r-- | rotate-keys.in | 12 |
1 files 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 |