diff options
Diffstat (limited to 'rotate-keys.in')
-rw-r--r-- | rotate-keys.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rotate-keys.in b/rotate-keys.in index 0ba3480..724ea24 100644 --- a/rotate-keys.in +++ b/rotate-keys.in @@ -46,9 +46,9 @@ if [ "$(whoami)" != "${certificate_user}" ]; then for host_key_file in ${host_key_files}; do if [ -f "${key_dir}/${host_key_file}.key.new" ] \ && [ -f "${key_dir}/${host_key_file}.crt.new" ]; then - if [ "$(stat -c%Y "${key_dir}/${host_key_file}.key.new")" -ge "$(($(date +%s)-60*60*24*30))" ] \ + if [ "$(stat -c%Y "${key_dir}/${host_key_file}.key.new")" -ge "$(($(date +%s)-60*60*24*key_min_duration))" ] \ && [ -f "${key_dir}/${host_key_file}.key" ] \ - && [ "$(stat -c%Y "${key_dir}/${host_key_file}.crt.new")" -ge "$(($(date +%s)-60*60*24*30))" ] \ + && [ "$(stat -c%Y "${key_dir}/${host_key_file}.crt.new")" -ge "$(($(date +%s)-60*60*24*key_min_duration))" ] \ && [ -f "${key_dir}/${host_key_file}.crt" ]; then continue fi |