diff --git a/lib/kitchen/provisioner/habitat.rb b/lib/kitchen/provisioner/habitat.rb index 378fd9d..b4d0c2d 100644 --- a/lib/kitchen/provisioner/habitat.rb +++ b/lib/kitchen/provisioner/habitat.rb @@ -164,7 +164,7 @@ def sup_run_script COUNT=$(ps aux | grep hab | wc -l) if [[ ${COUNT} -lt 2 ]] then - sudo -E hab sup run #{supervisor_options} > /home/kitchen/nohup.out & echo $! > /tmp/run.pid + sudo -E hab sup run #{supervisor_options} > #{ENV['HOME']}/nohup.out & echo $! > /tmp/run.pid fi done END