From 734a25678dedbd25a876e03b16ab5a2a42b9b5dc Mon Sep 17 00:00:00 2001 From: Mike Pirog Date: Wed, 30 Jul 2014 04:11:27 -0400 Subject: [PATCH] #69: Start the SSH Agent and load keyz if there --- .kalabox/uuid | 1 + kalabox/box.js | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .kalabox/uuid diff --git a/.kalabox/uuid b/.kalabox/uuid new file mode 100644 index 0000000..c70e4a5 --- /dev/null +++ b/.kalabox/uuid @@ -0,0 +1 @@ +kala.b8ea6fe2ba50f2868c9b9da24bcd5fdf.box \ No newline at end of file diff --git a/kalabox/box.js b/kalabox/box.js index 4b2fa31..ea14bbc 100644 --- a/kalabox/box.js +++ b/kalabox/box.js @@ -157,6 +157,17 @@ exports.startBox = flow('startBox')( }); }, 5000); }, + function startBox3() { + var that = this; + // Start the SSH Agent + exec('VAGRANT_CWD=' + KALASTACK_DIR + ' vagrant ssh -c "eval $(ssh-agent)"', that.next()); + }, + function startBox4() { + var that = this; + // Add any keys that we have + exec('VAGRANT_CWD=' + KALASTACK_DIR + ' vagrant ssh -c "drush php-eval \'_terminatur_keys();\'"', this.async()); + that.next(); + }, function startBoxEnd() { // Restart status checking. statusChecker = setInterval(repeatStatusCheck, 10000); @@ -414,4 +425,4 @@ var checkReady = flow('checkReady')( } this.next(); } -); \ No newline at end of file +);