Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Commit

Permalink
upgrade packages when creating proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld committed Oct 3, 2018
1 parent 1d85b72 commit 4b1739a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion terraform/proxy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ resource "aws_instance" "nginx" {
provisioner "remote-exec" {
inline = [
"sudo apt-get update -yq",
"sudo apt-get install -yq nginx",

// https://askubuntu.com/a/147079/501568
"sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\" dist-upgrade",

"sudo apt-get install -yq nginx unattended-upgrades",
"sudo mv /tmp/nginx.conf /etc/nginx/nginx.conf",
"sudo systemctl reload nginx",
]
Expand Down

0 comments on commit 4b1739a

Please sign in to comment.