mirror of
https://github.com/hak8or/proxmox_scripts.git
synced 2025-01-22 14:15:59 +00:00
Wipe fingerprint for container if IP address already is in known_hosts
This commit is contained in:
parent
18b1bbb85a
commit
0738fdfc47
@ -172,11 +172,14 @@ VMID=$(ssh root@$PROXMOX_IP_ADDR /usr/bin/env bash <<-'AcRP030CAlfad6'
|
|||||||
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.
|
# Get the IPv4 and IPv6 addresses of our noew container.
|
||||||
FN_get_IPaddr $VMID
|
FN_get_IPaddr $VMID
|
||||||
|
|
||||||
# Send and execute our arch init script.
|
# Wipe the fingerprint of the host in case it was used earlier.
|
||||||
FN_exec_script_proxy_container $VMID arch_setup.sh
|
ssh-keygen -R $IPv6ADDR > /dev/null
|
||||||
|
|
||||||
# Run any potential secondary script.
|
# Run any potential secondary script.
|
||||||
if [[ -n $1 ]]; then
|
if [[ -n $1 ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user