-
Notifications
You must be signed in to change notification settings - Fork 4
Quality of Life Updates #16
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
base: master
Are you sure you want to change the base?
Conversation
| echo "Welcome to Canopy Setup!" | ||
| echo | ||
|
|
||
| CONFIG_FILE=setup.conf |
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.
You should add an example of this file in the repo
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.
Will do if we like this approach.
setup.sh
Outdated
| } | ||
|
|
||
| # Function to save config to a file | ||
| save_config() { |
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.
this function is not idempotent, although the setup is meant to be ran once, I think we should protect against people who may want to use this as a way to update their files (or may run it multiple times if they're having issues for whatever reason)
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.
digging more into the code there's an autoload option so even more reasons to make this idempotent
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.
Yes the config file is only overwritten if the user opts to enter the values again.
The main purpose was for headless installs and running multiple times. Thinking again however I think we can remove the save functionality altogether and just have it read the file if it is present.
-Banner
-Setup config saving