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(local-process): error if content folder owned by other user #606

Merged
merged 1 commit into from
Feb 3, 2018

Conversation

acburdine
Copy link
Member

closes #501

  • if the content folder is owned by a separate user, the local process manager will fail
  • improve local process manager errors
  • add local process manager tests

@acburdine acburdine requested review from kirrg001 and aileen February 2, 2018 09:45
@coveralls
Copy link

coveralls commented Feb 2, 2018

Coverage Status

Coverage increased (+0.04%) to 98.585% when pulling d490297 on acburdine:fix/local-process into 3db21d6 on TryGhost:master.

const stat = fs.lstatSync(path.join(cwd, 'content'));

// Check that content folder is owned by the current user
if (stat.uid !== process.getuid()) {

This comment was marked as abuse.

This comment was marked as abuse.

@kirrg001 kirrg001 self-assigned this Feb 3, 2018
@@ -151,6 +168,15 @@ class LocalProcess extends ProcessManager {
return running;
}

_checkContentFolder(cwd) {
if (os.platform() !== 'linux') {

This comment was marked as abuse.

closes TryGhost#501
- if the content folder is owned by a separate user, the local process manager will fail
- improve local process manager errors
- add local process manager tests
@acburdine acburdine merged commit 707ce6a into TryGhost:master Feb 3, 2018
@acburdine acburdine deleted the fix/local-process branch February 3, 2018 09:05
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.

Ghost process exited with code: 0
4 participants