Parcourir la source

packer: Ensure cloud images generate new keys

Michael Aldridge il y a 2 ans
Parent
commit
0c4a3222ce
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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