]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Bugfixing snippets/tpl.400.chrony.sh
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 19 Jun 2020 10:08:48 +0000 (12:08 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 19 Jun 2020 10:08:48 +0000 (12:08 +0200)
snippets/tpl.400.chrony.sh

index 90b76a5a17962d7453b7507f8a6188bc4fa06985..acd7c9f1437d670e8cb68d15f836eed19df5c20a 100644 (file)
@@ -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 ))