Sfoglia il codice sorgente

packer: Ensure cloud images generate new keys

Michael Aldridge 2 anni fa
parent
commit
0c4a3222ce
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      packer/scripts/cloud.sh

+ 1 - 0
packer/scripts/cloud.sh

@@ -24,5 +24,6 @@ passwd -dl void
 passwd -dl root
 
 rm -rf /var/cache/xbps
+rm -f /etc/ssh/ssh_host*
 
 shutdown -P now