From a1ea4b94f1e8a8ce53de1faf6c92b059430a7f85 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Le=20Ninivin?= <cedric.leninivin@tiolive.com>
Date: Thu, 25 Sep 2014 14:47:09 +0200
Subject: [PATCH] slaprunner: fix PATH for minishell

---
 software/slaprunner/common.cfg             | 4 ++--
 software/slaprunner/instance-runner.cfg    | 1 +
 software/slaprunner/template/slapos.cfg.in | 1 +
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/software/slaprunner/common.cfg b/software/slaprunner/common.cfg
index 2bd119b9d..8d0e5e125 100644
--- a/software/slaprunner/common.cfg
+++ b/software/slaprunner/common.cfg
@@ -43,7 +43,7 @@ mode = 0644
 recipe = slapos.recipe.template
 url = ${:_profile_base_location_}/instance-runner.cfg
 output = ${buildout:directory}/template-runner.cfg.in
-md5sum = c2c25d668816ab3c32a79c33d05769fd
+md5sum = a4f3127bc82ff3a671a65a150f26c969
 mode = 0644
 
 [template-runner-import-script]
@@ -118,7 +118,7 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_}
 [template-slapos-cfg]
 recipe = hexagonit.recipe.download
 url = ${:_profile_base_location_}/template/${:filename}
-md5sum = ba3721425ba34e265b1f8390ed7196cf
+md5sum = ca57a8bf1d4da20344fab602a69b807f
 location = ${buildout:parts-directory}/${:_buildout_section_name_}
 filename = slapos.cfg.in
 download-only = true
diff --git a/software/slaprunner/instance-runner.cfg b/software/slaprunner/instance-runner.cfg
index 06b1d380e..6e890b95a 100644
--- a/software/slaprunner/instance-runner.cfg
+++ b/software/slaprunner/instance-runner.cfg
@@ -191,6 +191,7 @@ minishell_cwd_file = $${directory:etc}/.minishell-cwd
 minishell_history_file = $${directory:etc}/.minishell_history
 software_info_json = $${runnerdirectory:home}/software_info.json
 instance_info_json = $${runnerdirectory:home}/instance_info.json
+path = $${shell:path}
 
 [test-runner]
 <= slaprunner
diff --git a/software/slaprunner/template/slapos.cfg.in b/software/slaprunner/template/slapos.cfg.in
index 8e741311f..576659851 100644
--- a/software/slaprunner/template/slapos.cfg.in
+++ b/software/slaprunner/template/slapos.cfg.in
@@ -34,6 +34,7 @@ autorun = {{ slaprunner['autorun'] }}
 knowledge0_cfg = {{ slaprunner['knowledge0_file'] }}
 minishell_cwd_file = {{ slaprunner['minishell_cwd_file'] }}
 minishell_history_file = {{ slaprunner['minishell_history_file'] }}
+path = {{ slaprunner['path'] }}
 
 [slapproxy]
 host = {{ slaprunner['ipv4'] }}
-- 
2.30.9