From 0738fdfc47be56498c0ab35abe1cf91a8b11d842 Mon Sep 17 00:00:00 2001 From: hak8or Date: Wed, 15 Nov 2017 00:30:35 -0500 Subject: [PATCH] Wipe fingerprint for container if IP address already is in known_hosts --- deploy.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 2f80285..7eebec7 100644 --- a/deploy.sh +++ b/deploy.sh @@ -172,11 +172,14 @@ VMID=$(ssh root@$PROXMOX_IP_ADDR /usr/bin/env bash <<-'AcRP030CAlfad6' AcRP030CAlfad6 ) +# Send and execute our arch init script. +FN_exec_script_proxy_container $VMID arch_setup.sh + # Get the IPv4 and IPv6 addresses of our noew container. FN_get_IPaddr $VMID -# Send and execute our arch init script. -FN_exec_script_proxy_container $VMID arch_setup.sh +# Wipe the fingerprint of the host in case it was used earlier. +ssh-keygen -R $IPv6ADDR > /dev/null # Run any potential secondary script. if [[ -n $1 ]]; then