From: Frank Brehm Date: Fri, 19 Jun 2020 10:08:48 +0000 (+0200) Subject: Bugfixing snippets/tpl.400.chrony.sh X-Git-Tag: 2.1.2^2~9^2~31^2~17^2~10 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=e032fcf25a1983a83ad88cf564b23246f4721219;p=pixelpark%2Fcreate-vmware-tpl.git Bugfixing snippets/tpl.400.chrony.sh --- 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 ))