Skip to content

Commit

Permalink
#2501: Fixed bug causing lando to fail without .ssh dir
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Jul 22, 2020
1 parent 24b1e23 commit 582e22a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/help/2020-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Lando is **free** and **open source** software that relies on contributions from
* Added ability to configure the `proxy` middleware layer [#2507](https://github.com/lando/lando/pull/2507)
* Added `platformsh` specific headers to the `platformsh` recipe [#2507](https://github.com/lando/lando/pull/2507)
* Fixed bug causing `HTTPS` to not be set correctly on `platformsh` recipes [#2507](https://github.com/lando/lando/pull/2507)
* Fixed bug causing `lando` to fail if `~/.ssh` doesn't exist [#2501](https://github.com/lando/lando/pull/2501)
* Improved handling of `primary` route in `platformsh` recipe [#2508](https://github.com/lando/lando/pull/2508)

[What does pre-release mean?](https://docs.lando.dev/config/releases.html)
Expand Down
5 changes: 3 additions & 2 deletions plugins/lando-core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ module.exports = lando => {
const caCert = path.join(caDir, `${caDomain}.pem`);
const caKey = path.join(caDir, `${caDomain}.key`);
const caProject = `landocasetupkenobi38ahsoka${lando.config.instance}`;
// @TODO: below might not be needed
mkdirp.sync(caDir);
const sshDir = path.join(lando.config.home, '.ssh');
// Ensure some dirs exist before we start
_.forEach([caDir, sshDir], dir => mkdirp.sync(dir));

// Make sure we have a host-exposed root ca if we don't already
// NOTE: we don't run this on the caProject otherwise infinite loop happens!
Expand Down

0 comments on commit 582e22a

Please sign in to comment.