Prepending -i to sudo so PATH is inherited from profile.d scripts related to ec2 tooling

This commit is contained in:
Brian Hourigan 2015-02-19 14:32:27 -05:00
parent f1970370ef
commit 8e69403735
2 changed files with 4 additions and 4 deletions

View File

@ -68,7 +68,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
}
if b.config.BundleUploadCommand == "" {
b.config.BundleUploadCommand = "sudo -n ec2-upload-bundle " +
b.config.BundleUploadCommand = "sudo -i -n ec2-upload-bundle " +
"-b {{.BucketName}} " +
"-m {{.ManifestPath}} " +
"-a {{.AccessKey}} " +
@ -80,7 +80,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
}
if b.config.BundleVolCommand == "" {
b.config.BundleVolCommand = "sudo -n ec2-bundle-vol " +
b.config.BundleVolCommand = "sudo i -n ec2-bundle-vol " +
"-k {{.KeyPath}} " +
"-u {{.AccountId}} " +
"-c {{.CertPath}} " +

View File

@ -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 -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 -n ec2-upload-bundle \
sudo i -n ec2-upload-bundle \
-b {{.BucketName}} \
-m {{.ManifestPath}} \
-a {{.AccessKey}} \