summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-14 09:53:07 +0100
committerErich Eckner <git@eckner.net>2020-01-14 09:53:07 +0100
commitb1710ab18f3bc753982bb02f1aa9a0f2198046a8 (patch)
treeef85f991d4f35ce49970cd07f3b0a654c90578cb
parente9c5c7e85b99ead91dc69b8fbce640c09c2852ac (diff)
downloadsimple-pki-b1710ab18f3bc753982bb02f1aa9a0f2198046a8.tar.xz
rotate-keys: fix typo in variable name
-rw-r--r--rotate-keys.in12
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