From a5ee3a425f9056d93882dacb1605fc906d3aca23 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 14 Dec 2022 16:15:30 -0500 Subject: [PATCH] Provide full path to DSA key for deletion --- confluent_osdeploy/el8/profiles/default/scripts/pre.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh index c65959bb..e00ea19a 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh @@ -77,7 +77,7 @@ if [ ! -z "$blargs" ]; then echo "bootloader $blargs" > /tmp/grubpw fi ssh-keygen -A -rm ssh_host_dsa_key* +rm /etc/ssh/ssh_host_dsa_key* for pubkey in /etc/ssh/ssh_host*key.pub; do certfile=${pubkey/.pub/-cert.pub} curl -sf -X POST -H "CONFLUENT_NODENAME: $nodename" -H "CONFLUENT_APIKEY: $(cat /etc/confluent/confluent.apikey)" -d @$pubkey https://$confluent_mgr/confluent-api/self/sshcert > $certfile