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

Disable Ghost-CLI update check during ghost run #356

Closed
acburdine opened this issue Jul 13, 2017 · 0 comments · Fixed by #392
Closed

Disable Ghost-CLI update check during ghost run #356

acburdine opened this issue Jul 13, 2017 · 0 comments · Fixed by #392
Milestone

Comments

@acburdine
Copy link
Member

Currently, Ghost-CLI runs an update check every time a command is used. This update checks pings NPM to see if a new version has been published, and if so it puts out a little notice similar to this one (image taken from the update-notifier repo):

The update-notifier package stores some basic information in ~/.config - but when ghost run is run with the ghost linux user (which doesn't have a home folder), this gets output:

┌────────────────────────────────────────

│              ghost-cli update check failed              │
│           Try running with sudo or get access           │
│          to the local update config store via           │
│ sudo chown -R $USER:$(id -gn $USER) /home/ghost/.config │
└────────────────────────────────────────

We need to disable the update check during ghost run so this message doesn't get output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant