Skip to content

Added convenience script for updating default_userdata.sh#44

Open
jnorgan wants to merge 2 commits intomasterfrom
update_userdata
Open

Added convenience script for updating default_userdata.sh#44
jnorgan wants to merge 2 commits intomasterfrom
update_userdata

Conversation

@jnorgan
Copy link
Contributor

@jnorgan jnorgan commented Apr 11, 2016

This script updates the sha value in create.go for the default_userdata.sh file in your local sanders/resources/ dir and then uploads the file to S3.

@pims

create_cmd="${src_path}command/create.go"
sha=$(openssl sha1 $userdata | awk '{print $2}')
echo $sha
search='^var\\ expectedUser.*'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are search and replace unused?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, yes, they are. Fixing.

@pims
Copy link
Contributor

pims commented Apr 11, 2016

Hmm, I'd suggest using something like https://github.com/hello/sanders/blob/master/build.sh#L5 where you can pass in some variable into the build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants