PATH:
usr
/
local
/
lib
/
node_modules
/
ghost-cli
/
lib
/
commands
/
doctor
/
checks
'use strict'; const errors = require('../../../errors'); const chalk = require('chalk'); const ghostUser = require('../../../utils/use-ghost-user'); const taskTitle = 'Checking logged in user'; function loggedInUser() { const uid = process.getuid(); const ghostStats = ghostUser.getGhostUid(); if (ghostStats && ghostStats.uid === uid) { throw new errors.SystemError({ message: 'You can\'t run install commands with a user called "ghost". Switch to a different user and try again.', help: `${chalk.green('https://ghost.org/docs/install/ubuntu/#create-a-new-user-')}`, task: taskTitle }); } return; } module.exports = { title: taskTitle, task: loggedInUser, enabled: ctx => !ctx.local && !(ctx.instance && ctx.instance.process.name === 'local') && ctx.system.platform.linux && !(ctx.argv && ctx.argv.process === 'local'), category: ['install'] };
[-] system-stack.js
[edit]
[-] install-folder-permissions.js
[edit]
[+]
..
[-] logged-in-ghost-user.js
[edit]
[-] validate-config.js
[edit]
[-] logged-in-user.js
[edit]
[-] check-permissions.js
[edit]
[-] binary-deps.js
[edit]
[-] folder-permissions.js
[edit]
[-] mysql.js
[edit]
[-] logged-in-user-owner.js
[edit]
[-] check-memory.js
[edit]
[-] check-directory.js
[edit]
[-] index.js
[edit]
[-] file-permissions.js
[edit]
[-] content-folder.js
[edit]
[-] node-version.js
[edit]