-
Notifications
You must be signed in to change notification settings - Fork 383
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 --overwrite option to setup.sh #60
Conversation
Up until now the setup.sh script automatically deletes any existing environment file in /opt/redash/env, which has caught out numerous people and is a source of issues. From now onwards, an existing environment file will be kept, with only missing mandatory fields added to it to help ensure a working configuration. This commit also introduces a new --overwrite parameter to setup.sh, which tells it to completely overwrite any existing environment file and its matching database. DO NOT use the new --overwrite option if you want to keep your existing database, is it WILL cause your database to be replaced with an empty new one.
@getredash/maintainers @nexovec I'll probably merge this tomorrow if I don't hear from anyone. 😄
|
Hmmm, might be a decent idea to run
|
Tested on:
|
Ahhhh, the README file needs to mention the |
Going to merge this now. I've finished (manually) testing the updated script on all of the supported Linux distributions, and updated the README to include the new option. |
Up until now the setup.sh script automatically deletes any existing environment file in
/opt/redash/env
, which has caught out numerous people and is a source of issues.From now onwards, an existing environment file will be kept, with only missing mandatory fields added to it to help ensure a working configuration.
This commit also introduces a new (optional)
--overwrite
parameter to setup.sh, which tells it to completely overwrite any existing environment file and its matching database.DO NOT use the new
--overwrite
option if you want to keep your existing database, as it WILL cause your database to be replaced with an empty new one.