Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modularize / Document template.sh.in #243

Open
QuinnCiccoretti opened this issue Aug 9, 2019 · 1 comment
Open

Modularize / Document template.sh.in #243

QuinnCiccoretti opened this issue Aug 9, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@QuinnCiccoretti
Copy link

I'd like to add some custom scripts to set up devices. (specifically to install docker). Currently I put this code in template.sh.in, but it would be nice if I could separate it into a separate file.

  1. Does the provisioner zip the entire aws-greengrass-provisioner/src/main/resources/shell directory and transfer all the files over to the device?
  2. What environmental variables get written to these .in files? There seems to be env vars for all the scripts, and certificates, but it is unclear where they are set and how to add a new one. It would be pretty cool if I could do something similar to the start script in template:
if [ "$START" = true ]; then
    ./${START_SCRIPT}
fi

with my docker script:

if [ "$DOCKER" = true ]; then
    ./${DOCKER_INSTALL_SCRIPT}
fi

but I don't know how I'd go about this.

@timmattison
Copy link
Contributor

Modularizing the installer script would definitely help some users that have specific configurations they want to consistently build. I'll look into this.

@timmattison timmattison added the enhancement New feature or request label Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants