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(doctor): skip install dir checks for local installs #712

Merged
merged 1 commit into from
May 9, 2018

Conversation

aileen
Copy link
Member

@aileen aileen commented Apr 30, 2018

closes #711

We successfully pass this check for the ghost install local command and the intention was to always pass/skip it for local installs. The local argument is only available when executing the installation command. But this check also runs for ghost start and ghost update when there's no local argument.

This change will skip the check now also when the local process manager is used, which usually means that it's a local installation.

@coveralls
Copy link

coveralls commented Apr 30, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling c96a8eb on AileenCGN:fix-folder-perm-check-start into 649bc0e on TryGhost:master.

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.

LGTM 👍

@@ -16,7 +16,9 @@ function installFolderPermissions(ctx) {
task: taskTitle
}));
}).then(() => {
if (ctx.local || !ctx.system.platform.linux || (ctx.argv && ctx.argv['setup-linux-user'] === false)) {
const isLocal = ctx.local || ctx.instance && ctx.instance.process.name === 'local';

This comment was marked as abuse.

This comment was marked as abuse.

@aileen aileen force-pushed the fix-folder-perm-check-start branch from 6fcb427 to c96a8eb Compare May 8, 2018 03:27
@aileen aileen merged commit 4715aae into TryGhost:master May 9, 2018
@aileen aileen deleted the fix-folder-perm-check-start branch May 10, 2018 01:49
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.

local setup complains about directory permissions
3 participants