Skip to content

Added convenience script for updating default_userdata.sh - #44

Open
jnorgan wants to merge 2 commits into
masterfrom
update_userdata
Open

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

Conversation

@jnorgan

@jnorgan jnorgan commented Apr 11, 2016

Copy link
Copy Markdown
Contributor

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

Comment thread scripts/userdata-update Outdated
create_cmd="${src_path}command/create.go"
sha=$(openssl sha1 $userdata | awk '{print $2}')
echo $sha
search='^var\\ expectedUser.*'

Copy link
Copy Markdown
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
Copy Markdown
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

pims commented Apr 11, 2016

Copy link
Copy Markdown
Contributor

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