demo/digitalocean: use the env var to download

This commit is contained in:
Ryan Uber
2015-09-23 19:49:02 -07:00
parent 8de7d96f20
commit 4f6fa3f8d0

View File

@@ -12,19 +12,12 @@
}
],
"provisioners": [
{
"type": "file",
"source": "nomad.zip",
"destination": "/tmp/nomad.zip"
},
{
"type": "shell",
"inline": [
"sudo apt-get -y update",
"sudo apt-get -y install unzip",
"# Temporarily disabled until public release. Uncomment",
"# and remove the above file provisioner.",
"#curl -o /tmp/nomad.zip -L {{ user `bin_url` }}",
"curl -o /tmp/nomad.zip -L {{ user `bin_url` }}",
"sudo unzip -d /usr/local/bin /tmp/nomad.zip",
"mkdir -p /usr/local/etc/nomad"
]