-
Notifications
You must be signed in to change notification settings - Fork 5
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
add reboot machine option #58
Conversation
fi | ||
|
||
# Reboot machine | ||
if [ "${REBOOT:-}" = "true" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is section at very beguining of the file for default, even when this can be checked without value it may worthwile for reading purposes to add the control default value there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this? Can we add more context? and also make it a bit more explicit on the commit message.
Also does it make sense to reboot and wait? Otherwise if you reboot the next action (or step) needs to know connection will not be ready ...as so it will need to add the check mechanism
entrypoint.sh
Outdated
|
||
# Reboot machine | ||
if [ "${REBOOT:-}" = "true" ]; then | ||
reboot_cmd="$(ssh_cmd sudo reboot)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sudo reboot
will work for Linux and most probably for Darwin? (check it), but it will not work for Windows. we need to set an specific cmd per platform
@adrianriobo The linux machine still meet crc stuck issue. We need to reboot the machine to let it work again. |
7cd2271
to
8bf03fe
Compare
8bf03fe
to
bd21959
Compare
No description provided.