From a4cfd921f40463b7e241b91e646e39aaa787f509 Mon Sep 17 00:00:00 2001 From: Brian Hourigan Date: Sat, 4 Apr 2015 10:52:17 -0400 Subject: [PATCH] Adding missing hyphen to sudo options --- builder/amazon/instance/builder.go | 2 +- website/source/docs/builders/amazon-instance.html.markdown | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builder/amazon/instance/builder.go b/builder/amazon/instance/builder.go index bf6791700..54324af46 100644 --- a/builder/amazon/instance/builder.go +++ b/builder/amazon/instance/builder.go @@ -80,7 +80,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) { } if b.config.BundleVolCommand == "" { - b.config.BundleVolCommand = "sudo i -n ec2-bundle-vol " + + b.config.BundleVolCommand = "sudo -i -n ec2-bundle-vol " + "-k {{.KeyPath}} " + "-u {{.AccountId}} " + "-c {{.CertPath}} " + diff --git a/website/source/docs/builders/amazon-instance.html.markdown b/website/source/docs/builders/amazon-instance.html.markdown index 86d790ff9..f12d168bd 100644 --- a/website/source/docs/builders/amazon-instance.html.markdown +++ b/website/source/docs/builders/amazon-instance.html.markdown @@ -270,7 +270,7 @@ is responsible for executing `ec2-bundle-vol` in order to store and image of the root filesystem to use to create the AMI. ```text -sudo i -n ec2-bundle-vol \ +sudo -i -n ec2-bundle-vol \ -k {{.KeyPath}} \ -u {{.AccountId}} \ -c {{.CertPath}} \ @@ -297,7 +297,7 @@ across multiple lines for convenience of reading. The bundle upload command is responsible for taking the bundled volume and uploading it to S3. ```text -sudo i -n ec2-upload-bundle \ +sudo -i -n ec2-upload-bundle \ -b {{.BucketName}} \ -m {{.ManifestPath}} \ -a {{.AccessKey}} \