diff --git a/packer/build.pkr.hcl b/packer/build.pkr.hcl index 815736b..5ca794d 100644 --- a/packer/build.pkr.hcl +++ b/packer/build.pkr.hcl @@ -25,14 +25,30 @@ build { EOF , < /etc/apt/sources.list.d/wireguard.list - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E1B39B6EF6DDB96564797591AE33835F504A1A25 apt-get update - apt-get upgrade -yo DPkg::options::=--force-confold - apt-get install -yo DPkg::options::=--force-confold dns-root-data fail2ban ufw unattended-upgrades unbound - apt-get install -yo DPkg::options::=--force-confold linux-headers-$(uname -r) openresolv wireguard - apt-get install -yo DPkg::options::=--force-confold htop iperf3 qrencode nano ssh-import-id - apt-get autoremove -y + apt-get dist-upgrade -yo DPkg::options::=--force-confold + EOF + , + < /etc/apt/sources.list.d/wireguard.list + apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E1B39B6EF6DDB96564797591AE33835F504A1A25 + apt-get update && apt-get install -yo DPkg::options::=--force-confold wireguard EOF , <