From e032fcf25a1983a83ad88cf564b23246f4721219 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 19 Jun 2020 12:08:48 +0200 Subject: [PATCH] Bugfixing snippets/tpl.400.chrony.sh --- snippets/tpl.400.chrony.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/tpl.400.chrony.sh b/snippets/tpl.400.chrony.sh index 90b76a5..acd7c9f 100644 --- a/snippets/tpl.400.chrony.sh +++ b/snippets/tpl.400.chrony.sh @@ -140,11 +140,11 @@ perform_chrony() { local method= local keylen=256 - local i= + local i=1 local key= for method in 'MD5' 'SHA1' 'SHA256' 'SHA512'; do echo " * ${method}" - key=$( chronyc keygen $i "${method}" "${keylen}" ) + key=$( chronyc keygen "$i" "${method}" "${keylen}" ) echo " $key" echo "${key}" >> /etc/chrony.keys i=$(( $i + 1 )) -- 2.39.5