ghost-cli
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -5,2 +5,9 @@ # Ghost-CLI Changelog | ||
<a name="1.7.1"></a> | ||
## [1.7.1](https://github.com/TryGhost/Ghost-CLI/compare/1.7.0...1.7.1) (2018-04-11) | ||
### Bug Fixes | ||
* **migrations:** Use proper permissions to create content/settings folder ([#703](https://github.com/TryGhost/Ghost-CLI/issues/703)) ([9b0b0c5](https://github.com/TryGhost/Ghost-CLI/commit/9b0b0c5)) | ||
<a name="1.7.0"></a> | ||
@@ -7,0 +14,0 @@ # [1.7.0](https://github.com/TryGhost/Ghost-CLI/compare/1.6.0...1.7.0) (2018-04-10) |
'use strict'; | ||
function ensureSettingsFolder() { | ||
const cwd = process.cwd(); | ||
const fs = require('fs-extra'); | ||
function ensureSettingsFolder(context) { | ||
const path = require('path'); | ||
const ghostUser = require('./utils/use-ghost-user'); | ||
fs.ensureDirSync(path.resolve(cwd, 'content', 'settings')); | ||
const contentDir = context.instance.config.get('paths.contentPath'); | ||
if (ghostUser.shouldUseGhostUser(contentDir)) { | ||
return context.ui.sudo(`mkdir ${path.resolve(contentDir, 'settings')}`, {sudoArgs: '-E -u ghost'}); | ||
} else { | ||
const fs = require('fs-extra'); | ||
fs.ensureDirSync(path.resolve(contentDir, 'settings')); | ||
return Promise.resolve(); | ||
} | ||
} | ||
@@ -10,0 +17,0 @@ |
@@ -43,3 +43,7 @@ 'use strict'; | ||
if (pkg.engines && pkg.engines.cli && !semver.satisfies(cliPackage.version, pkg.engines.cli)) { | ||
return Promise.reject(new errors.SystemError('Zip file contains a Ghost version incompatible with this version of the CLI.')); | ||
return Promise.reject(new errors.SystemError({ | ||
message: 'Zip file contains a Ghost version incompatible with this version of the CLI.', | ||
help: `Required: v${pkg.engines.cli}, current: v${cliPackage.version}`, | ||
suggestion: 'npm install -g ghost-cli@latest' | ||
})); | ||
} | ||
@@ -46,0 +50,0 @@ |
{ | ||
"name": "ghost-cli", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "Just a CLI manager (for a blogging platform)", | ||
@@ -5,0 +5,0 @@ "author": "Ghost Foundation", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
548936
7514