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

fix(migrations): Use proper permissions to create content/settings folder #703

Merged
merged 3 commits into from
Apr 11, 2018
Merged

Conversation

e-nomem
Copy link
Contributor

@e-nomem e-nomem commented Apr 11, 2018

When migrating from CLI version 1.6.0 to 1.7.0, the new content/settings directory is not properly created since the content directory is owned by the ghost user and not my running user.

The fix here is to check the owner of the directory first and use sudo as appropriate.

It's getting late here so I'll come back for the failing tests later unless someone here wants to fix them up.

@aileen
Copy link
Member

aileen commented Apr 11, 2018

@e-nomem Thank you very much!!! This is totally necessary! We just need to fix the tests...

Copy link
Member

@acburdine acburdine left a comment

Choose a reason for hiding this comment

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

non-test changes look good and work, thanks @e-nomem 👍

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 1ccbded on e-nomem:master into 981da23 on TryGhost:master.

@aileen aileen merged commit 9b0b0c5 into TryGhost:master Apr 11, 2018
vikaspotluri123 pushed a commit to vikaspotluri123/Ghost-CLI that referenced this pull request Apr 25, 2018
…lder (TryGhost#703)

no issue

Fixes an issue where the migration wouldn't have the correct permission the create the new folder within the content directory, when it's owned by the `ghost` user.
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