• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TryGhost / Ghost-CLI / 1644
100%

Build:
DEFAULT BRANCH: master
Ran 13 Aug 2018 03:58AM UTC
Jobs 1
Files 67
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1644

push

travis-ci

acburdine
fix(migrations): sudo - don't fail with existing settings folder

issue #776

In production sites, when the ghost user is used, the `content/*` folder needs to be owned by the Ghost user so the ghost application will not run into permission issues. In the migration, to make sure this happens, we run the `mkdir` command using sudo (i.e. `sudo -E -u ghost mkdir {path}`). When the Ghost user isn't needed, we use the `fs-extra` library to make sure the directory exists (specifically `ensureDirSync`). `fs.ensureDirSync` is equivilant to running `mkdir` with the `p` flag, so the behaviour between sudo and no-sudo differs. By adding the `p` flag to the sudo command, the behaviour between the two cases are equalized, and the migrations won't fail if the content/settings folder exists when the Ghost user is used.

1131 of 1131 branches covered (100.0%)

1 of 1 new or added line in 1 file covered. (100.0%)

2255 of 2255 relevant lines covered (100.0%)

5.59 hits per line

Jobs
ID Job ID Ran Files Coverage
2 1644.2 13 Aug 2018 03:58AM UTC 0
100.0
Travis Job 1644.2
Source Files on build 1644
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Travis Build #1644
  • dc2d0f59 on github
  • Prev Build on master (#1605)
  • Next Build on master (#1654)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc