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

How to auto run script after boot #5

Open
mbac opened this issue Sep 22, 2024 · 1 comment
Open

How to auto run script after boot #5

mbac opened this issue Sep 22, 2024 · 1 comment

Comments

@mbac
Copy link

mbac commented Sep 22, 2024

Hi,

How can I run a command (wget to download my own startup/provision script) after all is set and done in the image?

If I add commands to the end of the provisioning script, I don't get errors, but any time I try to download a file it's nowhere to be found at boot (even if I set, say, wget https://onefile.com/thisone.txt -O /workspace/my_startup.sh).

Can you please advise?

thanks!

@robballantyne
Copy link
Member

Check /var/log/provisioning.log for errors

You are doing the right thing. Use the provisioning script to download and then execute whatever you need, or place the code directly into provisioning

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

No branches or pull requests

2 participants