PATH:
usr
/
local
/
lib
/
node_modules
/
ghost-cli
/
lib
'use strict'; async function ensureSettingsFolder(context) { const path = require('path'); const ghostUser = require('./utils/use-ghost-user'); const contentDir = context.instance.config.get('paths.contentPath'); if (ghostUser.shouldUseGhostUser(contentDir)) { await context.ui.sudo(`mkdir -p ${path.resolve(contentDir, 'settings')}`, {sudoArgs: '-E -u ghost'}); } else { const fs = require('fs-extra'); fs.ensureDirSync(path.resolve(contentDir, 'settings')); } } module.exports = [{ before: '1.7.0', title: 'Create content/settings directory', task: ensureSettingsFolder }];
[+]
ui
[-] process-manager.js
[edit]
[-] errors.js
[edit]
[+]
..
[-] migrations.js
[edit]
[+]
commands
[+]
utils
[-] bootstrap.js
[edit]
[-] extension.js
[edit]
[+]
tasks
[-] index.js
[edit]
[-] command.js
[edit]
[-] system.js
[edit]
[-] instance.js
[edit]