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

Make /opt/redash directory if it's not exist. #2042

Merged
merged 2 commits into from Oct 23, 2017

Conversation

isomura
Copy link
Contributor

@isomura isomura commented Oct 18, 2017

This change make this setup script easy to retry.

@@ -50,7 +50,7 @@ install_system_packages() {
}

create_directories() {
mkdir /opt/redash
mkdir -p /opt/redash
Copy link
Member

Choose a reason for hiding this comment

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

Did it ever happen to you that /opt wasn't there? Otherwise why do we need this?

Copy link
Contributor Author

@isomura isomura Oct 23, 2017

Choose a reason for hiding this comment

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

@arikfr
When this script was terminated abnormally after /opt/redash directory was made, "/opt/redash already exists." error occurred everytime with this mkdir command.
P option ignore even if /opt/redash exists.

Copy link
Member

Choose a reason for hiding this comment

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

In general this script is not idempotent and I would be careful to run it again "blindly".

Copy link
Member

Choose a reason for hiding this comment

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

But it's safe enough to make this change, so merging. Thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you!

@arikfr arikfr merged commit f75e31f into getredash:master Oct 23, 2017
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.

None yet

2 participants