PATH:
usr
/
local
/
lib
/
node_modules
/
ghost-cli
/
lib
/
commands
/
doctor
/
checks
'use strict'; const fs = require('fs-extra'); const constants = require('constants'); const chalk = require('chalk'); const errors = require('../../../errors'); const checkDirectoryAndAbove = require('./check-directory'); const taskTitle = 'Checking current folder permissions'; function installFolderPermissions(ctx) { return fs.access(process.cwd(), constants.R_OK | constants.W_OK).catch( () => Promise.reject(new errors.SystemError({ message: `The directory ${process.cwd()} is not writable by your user. You must grant write access and try again.`, help: `${chalk.green('https://ghost.org/docs/install/ubuntu/#create-a-directory')}`, task: taskTitle })) ).then(() => { const isLocal = ctx.local || (ctx.instance && ctx.instance.process.name === 'local'); if (isLocal || !ctx.system.platform.linux || (ctx.argv && ctx.argv['setup-linux-user'] === false)) { return Promise.resolve(); } return checkDirectoryAndAbove(process.cwd(), 'run `ghost install`', taskTitle); }); } module.exports = { title: taskTitle, task: installFolderPermissions, category: ['install', 'update', 'start'] };
[-] 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]