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

Improvement to device client setup #259

Merged
merged 1 commit into from
May 18, 2022
Merged

Conversation

RogerZhongAWS
Copy link
Contributor

@RogerZhongAWS RogerZhongAWS commented May 5, 2022

Motivation

Modifications

Change summary

Change fixes the issue, updates documentation and added a small QOL improvement in the setup script (when confirming config file, will no longer loop to the very beginning if the user hits the Enter key without specifying 'y' or 'n'

Testing

Manually tested ./setup.sh

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@RogerZhongAWS RogerZhongAWS force-pushed the systemdEnhancement branch 4 times, most recently from f7020b3 to 0de31d2 Compare May 9, 2022 22:06
chmod 644 "$CONF_OUTPUT_PATH"
printf ${GREEN} "Configuration has been successfully written to ${CONF_OUTPUT_PATH}"
fi
while [ "$CONFIRMED" != 1 ]; do
Copy link
Contributor

Choose a reason for hiding this comment

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

If user enters "n" then it will just keep asking that question without letting them to edit/correct?

Copy link
Contributor Author

@RogerZhongAWS RogerZhongAWS May 13, 2022

Choose a reason for hiding this comment

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

If they enter 'n' it should go back to the beginning

If they enter anything other than 'y' or 'n' it will ask the question again.

I'm mainly doing this because I have had an issue myself where I accidentally press enter and I have to enter everything over again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suppose experienced users of device client will just create a config file from a template but for those who are trying it out for the first time, maybe this will help them in case they press enter by accident

@RogerZhongAWS RogerZhongAWS force-pushed the systemdEnhancement branch 4 times, most recently from b87f541 to 6acfdc3 Compare May 17, 2022 16:43
chmod 644 "$CONF_OUTPUT_PATH"
printf ${GREEN} "Configuration has been successfully written to ${CONF_OUTPUT_PATH}"
fi
while [ "$CONFIRMED" != 1 ]; do
Copy link
Contributor

Choose a reason for hiding this comment

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

If user enters "n" then it will just keep asking that question without letting them to edit/correct?

@RogerZhongAWS RogerZhongAWS merged commit 7e4fa34 into main May 18, 2022
@RogerZhongAWS RogerZhongAWS deleted the systemdEnhancement branch May 18, 2022 23:07
joenghoyin pushed a commit to eguanatech/aws-iot-device-client-deprecated that referenced this pull request Aug 29, 2023
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.

4 participants