From dd2119c6d950e2d2528c3e2521bfb397abe165f9 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 19 Aug 2024 16:26:48 -0400 Subject: [PATCH] Ignore very old ssh key file --- confluent_osdeploy/common/profile/scripts/setupssh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/confluent_osdeploy/common/profile/scripts/setupssh b/confluent_osdeploy/common/profile/scripts/setupssh index 3fdf0ef5..eb989bb7 100644 --- a/confluent_osdeploy/common/profile/scripts/setupssh +++ b/confluent_osdeploy/common/profile/scripts/setupssh @@ -3,6 +3,9 @@ [ -f /opt/confluent/bin/apiclient ] && confapiclient=/opt/confluent/bin/apiclient [ -f /etc/confluent/apiclient ] && confapiclient=/etc/confluent/apiclient for pubkey in /etc/ssh/ssh_host*key.pub; do + if [ "$pubkey" = /etc/ssh/ssh_host_key.pub ]; then + continue + fi certfile=${pubkey/.pub/-cert.pub} rm $certfile confluentpython $confapiclient /confluent-api/self/sshcert $pubkey -o $certfile